public function addItem($item)
    {
        if (!is_numeric($item)) {
            throw new \InvalidArgumentException(sprintf("Value '%s' must be a numeric value", $item));
        }

        $this->items[] = $item;

        return $this;
    }
public function addItem($item)
    {
        if (!is_numeric($item)) {
            throw new \InvalidArgumentException(sprintf("Value '%s' must be a numeric value", $item));
        }

        $this->items[] = $item;

        return $this;
    }
public function addItem ( $ item ) { if ( ! is_numeric ( $ item ) ) { throw new \ InvalidArgumentException ( sprintf ( "Value '%s' must be a numeric value" , $ item ) ) ; } $ this -> items [ ] = $ item ; return $ this ; }
Add an item to the item list.

@param \CarlosIO\Geckoboard\Data\Text\Item $item Item to be added

@return $this
Add an item to the item list .