ZenUmlDiagram Class¶
- class ZenUmlDiagram¶
Represents a ZenUmlDiagram
- addItem(ItemInterface ...$interface)¶
Add item(s)
- Parameters:
...$interface (
ItemInterface) – The item(s)
- Returns:
A new instance of
ZenUmlDiagramwith the item(s) added- Return type:
- addParticipant(Participant ...$participant)¶
Add participant(s)
- Parameters:
...$participant (
Participant) – The participant(s)
- Returns:
A new instance of
ZenUmlDiagramwith the participant(s) added- Return type:
- render(array $attributes)¶
Render the Mermaid code enclosed in a <pre> tag
- Parameters:
$attributes (
array) – HTML attributes for the enclosing <pre> tag
- Returns:
Mermaid code enclosed in a <pre> tag
- Return type:
string
- withComment(string $comment)¶
Sets a comment for the ZenUmlDiagram
- Parameters:
$comment (
string) – The comment
- Returns:
A new instance of
ZenUmlDiagramwith the comment- Return type:
- withItem(ItemInterface ...$interface)¶
Set item(s)
- Parameters:
...$interface (
ItemInterface) – The item(s)
- Returns:
A new instance of
ZenUmlDiagramwith the item(s)- Return type:
- withTitle(string $title)¶
Sets a title for the ZenUmlDiagram
- Parameters:
$title (
string) – The title
- Returns:
A new instance of
ZenUmlDiagramwith the title- Return type:
- withParticipant(Participant ...$participant)¶
Set participant(s)
- Parameters:
...$participant (
Participant) – The participant(s)
- Returns:
A new instance of
ZenUmlDiagramwith the participant(s)- Return type: