src/Transformers/ItemTransformer.php
/**
     * Set the quantity to 1 if there is no quantity
     *
     * @param Item $item
     *
     * @return Item
     */
Set the quantity to 1 if there is no quantity
@param Item $item

@return Item
Set the quantity to 1 if there is no quantity @param Item $item @return Item
protected function atLeastOneQuantity(Item $item)
    {
        if (is_null($item->quantity())) {
            $item->quantity(1);
        }
        return $item;
    }
protected function atLeastOneQuantity ( Item $ item ) { if ( is_null ( $ item -> quantity ( ) ) ) { $ item -> quantity ( 1 ) ; } return $ item ; }
Set the quantity to 1 if there is no quantity
 @param Item $item
Set the quantity to 1 if there is no quantity @param Item $item