Payu\Component\Product::__construct PHP Method

__construct() public method

If you set vat value, the price should calculate without vat
public __construct ( null $name = null, null $code = null, null $quantity = null, null $info = null, null $price = null, null $version = null, null $vat = null, null $priceType = null )
$name null
$code null
$quantity null
$info null
$price null
$version null
$vat null
$priceType null
    public function __construct($name = null, $code = null, $quantity = null, $info = null, $price = null, $version = null, $vat = null, $priceType = null)
    {
        $this->setName($name);
        $this->setCode($code);
        $this->setQuantity($quantity);
        $this->setInfo($info);
        $this->setPrice($price);
        $this->setVersion($version);
        $this->setVat($vat);
        $this->setPriceType($priceType);
    }