mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-09-30 00:09:13 +02:00
Added Composite UML
This commit is contained in:
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