mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-02-24 17:52:25 +01:00
23 lines
391 B
Plaintext
23 lines
391 B
Plaintext
@startuml
|
|
class Form {
|
|
#elements : array|FormElement[]
|
|
+render($indent = 0 : int)
|
|
+addElement(FormElement $element)
|
|
}
|
|
|
|
abstract class FormElement {
|
|
+render($indent = 0 : int)
|
|
}
|
|
|
|
class InputElement {
|
|
+render($indent = 0 : int)
|
|
}
|
|
|
|
class TextElement {
|
|
+render($indent = 0 : int)
|
|
}
|
|
|
|
FormElement <|.. TextElement
|
|
FormElement <|.. InputElement
|
|
FormElement <|.. Form
|
|
@enduml |