Timeline Class¶
- class Timeline¶
Represents a Timeline diagram
- addPeriod(Period ...$period)¶
Add period(s)
- addSection(Section ...$section)¶
Add section(s)
- 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)¶
Set a comment
- Parameters:
$comment (
string) – The comment
- Returns:
A new instance of
Timelinewith the comment- Return type:
- withPeriod(Period ...$period)¶
Set period(s)
- withSection(Section ...$section)¶
Set section(s)