We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aef2f34 commit 0a47cdaCopy full SHA for 0a47cda
Structural/Facade/README.md
@@ -15,3 +15,7 @@ That's why a good facade has no `new` in it. If there are multiple creations for
15
16
The best facade has no `new` and a constructor with interface-type-hinted parameters.
17
If you need creation of new instances, use a Factory as argument.
18
+
19
+## UML Diagram
20
21
+
Structural/Facade/uml/uml.png
11.6 KB
Structural/Facade/uml/uml.svg
Structural/Facade/uml/uml.txt
@@ -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()
+interface OsInterface {
+ +halt()
+@enduml
0 commit comments