Added Facade UML

This commit is contained in:
John Webb 2014-07-29 11:04:10 -05:00
parent aef2f34993
commit 0a47cdaccd
4 changed files with 25 additions and 0 deletions

View File

@ -15,3 +15,7 @@ That's why a good facade has no `new` in it. If there are multiple creations for
The best facade has no `new` and a constructor with interface-type-hinted parameters.
If you need creation of new instances, use a Factory as argument.
## UML Diagram
![Alt Facade UML Diagram](uml/uml.png)

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 5.8 KiB

View File

@ -0,0 +1,20 @@
@startuml
interface BiosInterface {
+execute()
+waitForKeyPress()
+launch(OsInterface $os)
+powerDown()
}
class Facade {
#$os : OsInterface
#$bios : BiosInterface
+__construct(BiosInterface $bios, OsInterface $os)
+turnOn()
+turnOff()
}
interface OsInterface {
+halt()
}
@enduml