Period Class¶
- class Period¶
Represents a Period for
SectionorTimeline- __construct(string $label)¶
Creates a new Period
- Parameters:
$label (
string) – The period label
- Returns:
A Period instance
- Return type:
- addEvent(string ...$event)¶
Add event(s)
- withComment(string $comment)¶
Set a comment
- Parameters:
$comment (
string) – The comment
- Returns:
A new instance of
Periodwith the comment- Return type: