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