Group Class¶
- class Group¶
Represents a group of participants
- __construct(string $name)¶
Create a new Group
- Parameters:
$name (
string) – The group name
- Returns:
A new
Groupinstance- Return type:
- addParticipant(Participant ...$participant)¶
Add participant(s)
- Parameters:
...$participant (
Participant) – The participant(s)
- Returns:
A new instance of
Groupwith the participant(s) added- Return type:
- withComment(string $comment)¶
Sets a comment for the Group
- Parameters:
$comment (
string) – The comment
- Returns:
A new instance of
Groupwith the comment- Return type:
- withParticipant(Participant ...$participant)¶
Set participant(s)
- Parameters:
...$participant (
Participant) – The participant(s)
- Returns:
A new instance of
Groupwith the participant(s)- Return type: