Skip to content

Commit cfe6a4f

Browse files
committed
add illustrations and read me for adapter pattern
1 parent c069e46 commit cfe6a4f

File tree

6 files changed

+19
-0
lines changed

6 files changed

+19
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php namespace App\Patterns\Structural\AdapterPattern\Human;
2+
3+
class Application
4+
{
5+
public function render()
6+
{
7+
$men = new Men;
8+
echo $men->walk() . '<br/>';
9+
echo $men->speak() . '<br/>';
10+
11+
$kids = new KidsAdapter;
12+
echo $kids->walk();
13+
echo $kids->speak() . '<br/>';
14+
}
15+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Human Behaviors
2+
![Illustration](./illustration.png)
Loading

app/Patterns/Structural/AdapterPattern/OperatingSystems/Application.php

Whitespace-only changes.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Operating Systems
2+
![Illustration](./illustration.png)
Loading

0 commit comments

Comments
 (0)