Loop Class ========== .. php:class:: Loop Represents a loop Implements :php:interface:`ItemInterface` .. php:method:: __construct(string $condition) Create a new Loop :param string $condition: The loop condition :returns: A new ``Loop`` instance :rtype: Loop .. php:method:: addItem(ItemInterface ...$interface) Add item(s) :param ItemInterface ...$interface: The item(s) :returns: A new instance of ``Loop`` with the item(s) added :rtype: Loop .. php:method:: withComment(string $comment) Set a comment for the Loop :param string $comment: The comment :returns: A new instance of ``Loop`` with the comment :rtype: Loop .. php:method:: withItem(ItemInterface ...$interface) Set item(s) :param ItemInterface ...$interface: The item(s) :returns: A new instance of ``Loop`` with the item(s) :rtype: Loop