public function setShippingInfo(array $shippingInfo)
    {
        $shippingInfo = [
          'shippingType'     => $this->sanitizeNumber($shippingInfo, 'shippingType'),
          'shippingCost'     => $this->sanitizeMoney($shippingInfo, 'shippingCost'),
        ];

        $this->validateShippingInfo($shippingInfo);
        $this->shippingInfo = $shippingInfo;

        return $this;
    }
public function setShippingInfo(array $shippingInfo)
    {
        $shippingInfo = [
          'shippingType'     => $this->sanitizeNumber($shippingInfo, 'shippingType'),
          'shippingCost'     => $this->sanitizeMoney($shippingInfo, 'shippingCost'),
        ];

        $this->validateShippingInfo($shippingInfo);
        $this->shippingInfo = $shippingInfo;

        return $this;
    }
public function setShippingInfo ( array $ shippingInfo ) { $ shippingInfo = [ 'shippingType' => $ this -> sanitizeNumber ( $ shippingInfo , 'shippingType' ) , 'shippingCost' => $ this -> sanitizeMoney ( $ shippingInfo , 'shippingCost' ) , ] ; $ this -> validateShippingInfo ( $ shippingInfo ) ; $ this -> shippingInfo = $ shippingInfo ; return $ this ; }
Define o valor e o tipo do frete cobrado.

@param array $shippingInfo

@return $this
Define o valor e o tipo do frete cobrado .