Loop Class ========== .. php:class:: Loop Represents a `loop` Block .. php:method:: __construct(string $condition) Create a new Loop block :param ?string $condition: The condition :returns: A new instance of ``Loop`` :rtype: Loop .. php:method:: addItem(ItemInterface ...$item) Add item(s) :param ItemInterface ...$item: The item(s) :returns: A new instance of ``Loop`` with the item(s) added :rtype: Loop .. php:method:: withComment(string $comment) Sets 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 ...$item) Set item(s) :param ItemInterface ...$item: The item(s) :returns: A new instance of ``Loop`` with the item(s) :rtype: Loop