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 Group instance

Return type:

Group

addParticipant(Participant ...$participant)

Add participant(s)

Parameters:
Returns:

A new instance of Group with the participant(s) added

Return type:

Group

withComment(string $comment)

Sets a comment for the Group

Parameters:
  • $comment (string) – The comment

Returns:

A new instance of Group with the comment

Return type:

Group

withParticipant(Participant ...$participant)

Set participant(s)

Parameters:
Returns:

A new instance of Group with the participant(s)

Return type:

Group