Rectangle Class =============== .. php:class:: Rectangle Represents a Rectangle block .. php:method:: __construct(array|string $colour) Create a new Rectangle block :param ?string $condition: The block colour * array - RGB(A) where RGB values are 0 <= value <= 255, and A is 0 <= value <= 1 * string - HTML colour :returns: A new instance of ``Rectangle`` :rtype: Rectangle .. php:method:: addItem(ItemInterface ...$item) Add item(s) :param ItemInterface ...$item: The item(s) :returns: A new instance of ``Rectangle`` with the item(s) added :rtype: Rectangle .. php:method:: withComment(string $comment) Sets a comment for the Rectangle :param string $comment: The comment :returns: A new instance of ``Rectangle`` with the comment :rtype: Rectangle .. php:method:: withItem(ItemInterface ...$item) Set item(s) :param ItemInterface ...$item: The item(s) :returns: A new instance of ``Rectangle`` with the item(s) :rtype: Rectangle