printer.v1.invoice.OrderVatItem */ class OrderVatItem 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 double vat_money_sum = 3 [json_name = "vatMoneySum"]; */ protected $vat_money_sum = 0.0; /** * Generated from protobuf field uint64 items_count = 4 [json_name = "itemsCount"]; */ protected $items_count = 0; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $description * @type float $vat * @type float $vat_money_sum * @type int|string $items_count * } */ 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 double vat_money_sum = 3 [json_name = "vatMoneySum"]; * @return float */ public function getVatMoneySum() { return $this->vat_money_sum; } /** * Generated from protobuf field double vat_money_sum = 3 [json_name = "vatMoneySum"]; * @param float $var * @return $this */ public function setVatMoneySum($var) { GPBUtil::checkDouble($var); $this->vat_money_sum = $var; return $this; } /** * Generated from protobuf field uint64 items_count = 4 [json_name = "itemsCount"]; * @return int|string */ public function getItemsCount() { return $this->items_count; } /** * Generated from protobuf field uint64 items_count = 4 [json_name = "itemsCount"]; * @param int|string $var * @return $this */ public function setItemsCount($var) { GPBUtil::checkUint64($var); $this->items_count = $var; return $this; } }