src/Common/Item.php
public function setTaxes($value)
    {
        if (is_array($value)) {
            $bag = new Bag();
            foreach ($value as $taxParameters) {
                $bag->add(new Tax($taxParameters));
            }
            $value = $bag;
        }

        return $this->setParameter('taxes', $value);
    }
public function setTaxes($value)
    {
        if (is_array($value)) {
            $bag = new Bag();
            foreach ($value as $taxParameters) {
                $bag->add(new Tax($taxParameters));
            }
            $value = $bag;
        }

        return $this->setParameter('taxes', $value);
    }
public function setTaxes ( $ value ) { if ( is_array ( $ value ) ) { $ bag = new Bag ( ) ; foreach ( $ value as $ taxParameters ) { $ bag -> add ( new Tax ( $ taxParameters ) ) ; } $ value = $ bag ; } return $ this -> setParameter ( 'taxes' , $ value ) ; }
Set the item taxes

@param Bag $value
@return Item
Set the item taxes