VerticalMarker

class VerticalMarker

Represents a VerticalMarker on a Gantt chart

__construct(string $title, string $when, string $duration, ?string $id = null)

Create a VerticalMarker

Parameters:
  • $title (string) – VerticalMarker title

  • $when (string) – When the VerticalMarker starts in the chart input date format (see GanttChart::withDateFormat)

  • $duration (string) – VerticalMarker duration in the form nt where n is an integer and t is a letter indicating the duration unit, e.g. d for days

  • $id (?string) – VerticalMarker id (default: no id)

Returns:

A new VerticalMarker instance

Return type:

VerticalMarker

withComment(string $comment) self

Set a comment for the VerticalMarker

Parameters:
  • $comment (string) – The comment

Returns:

A new VerticalMarker instance

Return type:

VerticalMarker

withInteraction(string $interaction, InteractionType $type, ?string $tooltip = null, InteractionTarget $target = InteractionTarget::Self)

Set an interaction

Parameters:
  • $interaction (string) – Interaction text

  • $type (InteractionType) – Interaction type; callback or link

  • $tooltip (?string) – Tooltip text (default: no tooltip)

  • $target (InteractionTarget) – Interaction target (default: current window)

Returns:

A new VerticalMarker instance with the interaction

Return type:

VerticalMarker