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:

Participant

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 Participant with the link(s) added

Return type:

Participant

withComment(string $comment)

Sets a comment for the Participant

Parameters:
  • $comment (string) – The comment

Returns:

A new instance of Participant with the comment

Return type:

Participant

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 Participant with the link(s)

Return type:

Participant