SequenceDiagram Class¶
- class SequenceDiagram¶
- addItem(ItemInterface ...$item)¶
Add item(s)
- Parameters:
...$item (
ItemInterface) – The item(s)
- Returns:
A new instance of
SequenceDiagramwith the item(s) added- Return type:
- addParticipant(Participant ...$participant)¶
Add participant(s)
- Parameters:
...$participant (
ParticipantInterface) – The participant(s)
- Returns:
A new instance of
SequenceDiagramwith the participant(s) added- Return type:
- render(array $attributes = [])¶
Renders the Mermaid diagram
- Parameters:
$attributes (
array) – HTML attributes for the <pre> tag as name=>value pairs
Note
The mermaid class is added
- Returns:
The Mermaid diagram code in a <pre> tag
- Return type:
string
- withComment(string $comment)¶
Sets a comment for the SequenceDiagram
- Parameters:
$comment (
string) – The comment
- Returns:
A new instance of
SequenceDiagramwith the comment- Return type:
- withItem(ItemInterface ...$item)¶
Set item(s)
- Parameters:
...$item (
ItemInterface) – The item(s)
- Returns:
A new instance of
SequenceDiagramwith the item(s)- Return type:
- withParticipant(Participant ...$participant)¶
Set participant(s)
- Parameters:
...$participant (
ParticipantInterface) – The participant(s)
- Returns:
A new instance of
SequenceDiagramwith the participant(s)- Return type: