mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-05 14:37:27 +02:00
Added Composite UML
This commit is contained in:
BIN
Structural/Composite/uml/uml.png
Normal file
BIN
Structural/Composite/uml/uml.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 12 KiB |
1
Structural/Composite/uml/uml.svg
Normal file
1
Structural/Composite/uml/uml.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 7.2 KiB |
23
Structural/Composite/uml/uml.txt
Normal file
23
Structural/Composite/uml/uml.txt
Normal file
@@ -0,0 +1,23 @@
|
||||
@startuml
|
||||
class Form {
|
||||
protected elements
|
||||
+render($indent = 0)
|
||||
+addElement(FormElement $element)
|
||||
}
|
||||
|
||||
abstract class FormElement {
|
||||
+render($indent = 0)
|
||||
}
|
||||
|
||||
class InputElement {
|
||||
+render($indent = 0)
|
||||
}
|
||||
|
||||
class TextElement {
|
||||
+render($indent = 0)
|
||||
}
|
||||
|
||||
FormElement <|.. TextElement
|
||||
FormElement <|.. InputElement
|
||||
FormElement <|.. Form
|
||||
@enduml
|
Reference in New Issue
Block a user