src/Cart.php
/**
     * If no value is passed returns the current cart items. Else, acts like an alias of add()
     *
     * @param null $itemOrItems
     *
     * @return array|Cart
     */
If no value is passed returns the current cart items. Else, acts like an alias of add()
@param null $itemOrItems

@return array|Cart
If no value is passed returns the current cart items . Else acts like an alias of add () @param null $itemOrItems @return array|Cart
public function items($itemOrItems = null)
    {
        if (is_null($itemOrItems)) {
            return $this->items;
        }
        return $this->add($itemOrItems);
    }
public function items ( $ itemOrItems = null ) { if ( is_null ( $ itemOrItems ) ) { return $ this -> items ; } return $ this -> add ( $ itemOrItems ) ; }
If no value is passed returns the current cart items.
If no value is passed returns the current cart items .