mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-06 15:06:31 +02:00
Added Facade UML
This commit is contained in:
BIN
Structural/Facade/uml/uml.png
Normal file
BIN
Structural/Facade/uml/uml.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 12 KiB |
1
Structural/Facade/uml/uml.svg
Normal file
1
Structural/Facade/uml/uml.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 5.8 KiB |
20
Structural/Facade/uml/uml.txt
Normal file
20
Structural/Facade/uml/uml.txt
Normal 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
|
Reference in New Issue
Block a user