mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-06 15:06:31 +02:00
Updated uml diagrams for structural patterns
This commit is contained in:
24
Structural/Facade/uml/Facade.uml
Normal file
24
Structural/Facade/uml/Facade.uml
Normal file
@@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Diagram>
|
||||
<ID>PHP</ID>
|
||||
<OriginalElement>\DesignPatterns\Structural\Facade\BiosInterface</OriginalElement>
|
||||
<nodes>
|
||||
<node x="0.0" y="174.0">\DesignPatterns\Structural\Facade\BiosInterface</node>
|
||||
<node x="208.0" y="174.0">\DesignPatterns\Structural\Facade\OsInterface</node>
|
||||
<node x="0.0" y="0.0">\DesignPatterns\Structural\Facade\Facade</node>
|
||||
</nodes>
|
||||
<notes />
|
||||
<edges />
|
||||
<settings layout="Hierarchic Group" zoom="1.0" x="149.0" y="140.5" />
|
||||
<SelectedNodes>
|
||||
<node>\DesignPatterns\Structural\Facade\BiosInterface</node>
|
||||
</SelectedNodes>
|
||||
<Categories>
|
||||
<Category>Fields</Category>
|
||||
<Category>Constants</Category>
|
||||
<Category>Constructors</Category>
|
||||
<Category>Methods</Category>
|
||||
</Categories>
|
||||
<VISIBILITY>private</VISIBILITY>
|
||||
</Diagram>
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 8.4 KiB |
File diff suppressed because one or more lines are too long
Before Width: | Height: | Size: 5.8 KiB After Width: | Height: | Size: 48 KiB |
@@ -1,20 +0,0 @@
|
||||
@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