Milestone ========= .. php:class:: Milestone Represents a Milestone on a Gantt chart .. php:method:: __construct(string $title, string $when, string $duration, ?string $id = null) Create a Milestone :param string $title: Milestone title :param string $when: When the Milestone starts in the chart input date format (see :php:meth:`GanttChart::withDateFormat`) :param string $duration: Milestone duration in the form *nt* where *n* is an integer and *t* is a letter indicating the duration unit, e.g. *d* for *days* :param ?string $id: Milestone id (default: no id) :returns: A new ``Milestone`` instance :rtype: Milestone .. php:method:: withComment(string $comment) Set a comment for the Milestone :param string $comment: The comment :returns: A new ``Milestone`` instance :rtype: Milestone .. php:method:: withInteraction(string $interaction, InteractionType $type, ?string $tooltip = null, InteractionTarget $target = InteractionTarget::Self) Set an interaction :param string $interaction: Interaction text :param InteractionType $type: Interaction type; callback or link :param ?string $tooltip: Tooltip text (default: no tooltip) :param InteractionTarget $target: Interaction target (default: current window) :returns: A new ``Milestone`` instance with the interaction :rtype: Milestone