printer.v1.invoice.OrderItem */ class OrderItem extends \Google\Protobuf\Internal\Message { /** * Generated from protobuf field string description = 1 [json_name = "description"]; */ protected $description = ''; /** * Generated from protobuf field double vat = 2 [json_name = "vat"]; */ protected $vat = 0.0; /** * Generated from protobuf field uint64 count = 3 [json_name = "count"]; */ protected $count = 0; /** * Generated from protobuf field double price_single = 4 [json_name = "priceSingle"]; */ protected $price_single = 0.0; /** * Generated from protobuf field double price_sum = 5 [json_name = "priceSum"]; */ protected $price_sum = 0.0; /** * Generated from protobuf field bool price_net = 6 [json_name = "priceNet"]; */ protected $price_net = false; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $description * @type float $vat * @type int|string $count * @type float $price_single * @type float $price_sum * @type bool $price_net * } */ public function __construct($data = NULL) { \Printer\V1\Invoice\GPBMetadata\PdfInvoice::initOnce(); parent::__construct($data); } /** * Generated from protobuf field string description = 1 [json_name = "description"]; * @return string */ public function getDescription() { return $this->description; } /** * Generated from protobuf field string description = 1 [json_name = "description"]; * @param string $var * @return $this */ public function setDescription($var) { GPBUtil::checkString($var, True); $this->description = $var; return $this; } /** * Generated from protobuf field double vat = 2 [json_name = "vat"]; * @return float */ public function getVat() { return $this->vat; } /** * Generated from protobuf field double vat = 2 [json_name = "vat"]; * @param float $var * @return $this */ public function setVat($var) { GPBUtil::checkDouble($var); $this->vat = $var; return $this; } /** * Generated from protobuf field uint64 count = 3 [json_name = "count"]; * @return int|string */ public function getCount() { return $this->count; } /** * Generated from protobuf field uint64 count = 3 [json_name = "count"]; * @param int|string $var * @return $this */ public function setCount($var) { GPBUtil::checkUint64($var); $this->count = $var; return $this; } /** * Generated from protobuf field double price_single = 4 [json_name = "priceSingle"]; * @return float */ public function getPriceSingle() { return $this->price_single; } /** * Generated from protobuf field double price_single = 4 [json_name = "priceSingle"]; * @param float $var * @return $this */ public function setPriceSingle($var) { GPBUtil::checkDouble($var); $this->price_single = $var; return $this; } /** * Generated from protobuf field double price_sum = 5 [json_name = "priceSum"]; * @return float */ public function getPriceSum() { return $this->price_sum; } /** * Generated from protobuf field double price_sum = 5 [json_name = "priceSum"]; * @param float $var * @return $this */ public function setPriceSum($var) { GPBUtil::checkDouble($var); $this->price_sum = $var; return $this; } /** * Generated from protobuf field bool price_net = 6 [json_name = "priceNet"]; * @return bool */ public function getPriceNet() { return $this->price_net; } /** * Generated from protobuf field bool price_net = 6 [json_name = "priceNet"]; * @param bool $var * @return $this */ public function setPriceNet($var) { GPBUtil::checkBool($var); $this->price_net = $var; return $this; } }