Section Class¶
- class Section¶
Represents a Section for
Timeline- __construct(string $label)¶
Creates a new Section
- Parameters:
$label (
string) – The section label
- Returns:
A Section instance
- Return type:
- addPeriod(Period ...$period)¶
Add period(s)
- withComment(string $comment)¶
Set a comment
- Parameters:
$comment (
string) – The comment
- Returns:
A new instance of
Sectionwith the comment- Return type: