Iff Class ========= .. php:class:: Iff Represents an `if` block of conditional statements Implements :php:interface:`ItemInterface` .. php:method:: __construct(string $condition) Create a new Iff conditional group of statements :param string $condition: The condition :returns: A new instance of ``Iff`` :rtype: Iff .. php:method:: addElse(Elsee ...$else) Add Elsee group(s) :param Elsee ...$else: The else group(s) :returns: A new instance of ``Iff`` with the Elsee group(s) added :rtype: Iff .. php:method:: addItem(ItemInterface ...$interface) Add item(s) :param ItemInterface ...$interface: The item(s) :returns: A new instance of ``Iff`` with the item(s) added :rtype: Iff .. php:method:: withComment(string $comment) Set a comment for the Iff :param string $comment: The comment :returns: A new instance of ``Iff`` with the comment :rtype: Iff .. php:method:: withElse(Elsee ...$else) Set Elsee group(s) :param Elsee ...$else: The else group(s) :returns: A new instance of ``Iff`` with the Elsee group(s) :rtype: Iff .. php:method:: withItem(ItemInterface ...$interface) Set item(s) :param ItemInterface ...$interface: The item(s) :returns: A new instance of ``Iff`` with the item(s) :rtype: Iff