Skip to content

Commit 0a47cda

Browse files
committed
Added Facade UML
1 parent aef2f34 commit 0a47cda

File tree

4 files changed

+25
-0
lines changed

4 files changed

+25
-0
lines changed

Structural/Facade/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,7 @@ That's why a good facade has no `new` in it. If there are multiple creations for
1515

1616
The best facade has no `new` and a constructor with interface-type-hinted parameters.
1717
If you need creation of new instances, use a Factory as argument.
18+
19+
## UML Diagram
20+
21+
![Alt Facade UML Diagram](uml/uml.png)

Structural/Facade/uml/uml.png

11.6 KB
Loading

Structural/Facade/uml/uml.svg

Lines changed: 1 addition & 0 deletions
Loading

Structural/Facade/uml/uml.txt

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
@startuml
2+
interface BiosInterface {
3+
+execute()
4+
+waitForKeyPress()
5+
+launch(OsInterface $os)
6+
+powerDown()
7+
}
8+
9+
class Facade {
10+
#$os : OsInterface
11+
#$bios : BiosInterface
12+
+__construct(BiosInterface $bios, OsInterface $os)
13+
+turnOn()
14+
+turnOff()
15+
}
16+
17+
interface OsInterface {
18+
+halt()
19+
}
20+
@enduml

0 commit comments

Comments
 (0)