mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-30 03:30:14 +02: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 |