Participant Class¶
- class Participant¶
Represents a participant
- __construct(string $id, ?string $alias = null, ?ParticipantType $type = null)¶
Create a new Participant instance
- Parameters:
$id (
string) – Participant id$alias (
?string) – Participant alias (default: use the id as the alias)$type (
?ParticipantType) – Participant type (default: no type)
- Returns:
A new instance of
Participant- Return type:
- addLink(array $link)¶
Add Participant link(s)
- Parameters:
$links (
array) – An array of link(s) as key=>value pairs where the keys are the link text and the values are the URLs
- Returns:
A new instance of
Participantwith the link(s) added- Return type:
- withComment(string $comment)¶
Sets a comment for the Participant
- Parameters:
$comment (
string) – The comment
- Returns:
A new instance of
Participantwith the comment- Return type:
- withLink(array $link)¶
Set Participant link(s)
- Parameters:
$links (
array) – An array of link(s) as key=>value pairs where the keys are the link text and the values are the URLs
- Returns:
A new instance of
Participantwith the link(s)- Return type: