Actor Class

class Actor

Represents a participant that uses the actor symbol

Actor extends Participant

__construct(string $id, ?string $alias = null, ?ParticipantType $type = null)

Create a new Actor instance

Parameters:
  • $id (string) – Actor id

  • $alias (?string) – Actor alias (default: use the id as the alias)

  • $type (?ParticipantType) – Actor type (default: no type)

Returns:

A new instance of Actor

Return type:

Actor

withComment(string $comment)

Sets a comment for the Actor

Parameters:
  • $comment (string) – The comment

Returns:

A new instance of Actor with the comment

Return type:

Actor