SequenceDiagram Class ===================== .. php:class:: SequenceDiagram .. php:method:: addItem(ItemInterface ...$item) Add item(s) :param ItemInterface ...$item: The item(s) :returns: A new instance of ``SequenceDiagram`` with the item(s) added :rtype: SequenceDiagram .. php:method:: addParticipant(Participant ...$participant) Add participant(s) :param ParticipantInterface ...$participant: The participant(s) :returns: A new instance of ``SequenceDiagram`` with the participant(s) added :rtype: SequenceDiagram .. php:method:: render(array $attributes = []) Renders the Mermaid diagram :param array $attributes: HTML attributes for the
 tag as name=>value pairs

        .. note:: The `mermaid` class is added

        :returns: The Mermaid diagram code in a 
 tag
        :rtype: string

    .. php:method:: withComment(string $comment)

        Sets a comment for the SequenceDiagram

        :param string $comment: The comment
        :returns: A new instance of ``SequenceDiagram`` with the comment
        :rtype: SequenceDiagram

    .. php:method:: withItem(ItemInterface ...$item)

        Set item(s)

        :param ItemInterface ...$item: The item(s)
        :returns: A new instance of ``SequenceDiagram`` with the item(s)
        :rtype: SequenceDiagram

    .. php:method:: withParticipant(Participant ...$participant)

        Set participant(s)

        :param ParticipantInterface ...$participant: The participant(s)
        :returns: A new instance of ``SequenceDiagram`` with the participant(s)
        :rtype: SequenceDiagram