Note Class

class Note

Represents a note

__construct(string $content, Position $position, Participant ...$participant)

Create a new Note instance

Parameters:
  • $content (string) – The note content

  • $position (Position) – The note position relative to the participant

  • ...$participant (Participant) –

    Participant(s). Provide two Participants to have the Note span both of them

    Note

    Position must be Position::over if there are two participants

Returns:

A new Note instance

Return type:

Note

exception InvalidArgumentException

Thrown is there are too many participants or $position is not Position::over when there are two participants