Timeline Class¶
- class Timeline¶
Represents a Timeline diagram
- addPeriod(Period ...$period)¶
Add period(s)
- addSection(Section ...$section)¶
Add section(s)
- render(array $attributes = [])¶
Renders the diagram
- Parameters:
$attributes (
array) –HTML attributes for the <pre> tag as name=>value pairs
Note
The mermaid class is added
- Returns:
Mermaid diagram code 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)