Files
protobuf/gen/proto/php/Printer/V1/Invoice/OrderItem.php
2022-05-31 09:30:19 +02:00

194 lines
4.7 KiB
PHP

<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: printer/v1/pdf_invoice.proto
namespace Printer\V1\Invoice;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>printer.v1.invoice.OrderItem</code>
*/
class OrderItem extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field <code>string description = 1 [json_name = "description"];</code>
*/
protected $description = '';
/**
* Generated from protobuf field <code>double vat = 2 [json_name = "vat"];</code>
*/
protected $vat = 0.0;
/**
* Generated from protobuf field <code>uint64 count = 3 [json_name = "count"];</code>
*/
protected $count = 0;
/**
* Generated from protobuf field <code>double price_single = 4 [json_name = "priceSingle"];</code>
*/
protected $price_single = 0.0;
/**
* Generated from protobuf field <code>double price_sum = 5 [json_name = "priceSum"];</code>
*/
protected $price_sum = 0.0;
/**
* Generated from protobuf field <code>bool price_net = 6 [json_name = "priceNet"];</code>
*/
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 <code>string description = 1 [json_name = "description"];</code>
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Generated from protobuf field <code>string description = 1 [json_name = "description"];</code>
* @param string $var
* @return $this
*/
public function setDescription($var)
{
GPBUtil::checkString($var, True);
$this->description = $var;
return $this;
}
/**
* Generated from protobuf field <code>double vat = 2 [json_name = "vat"];</code>
* @return float
*/
public function getVat()
{
return $this->vat;
}
/**
* Generated from protobuf field <code>double vat = 2 [json_name = "vat"];</code>
* @param float $var
* @return $this
*/
public function setVat($var)
{
GPBUtil::checkDouble($var);
$this->vat = $var;
return $this;
}
/**
* Generated from protobuf field <code>uint64 count = 3 [json_name = "count"];</code>
* @return int|string
*/
public function getCount()
{
return $this->count;
}
/**
* Generated from protobuf field <code>uint64 count = 3 [json_name = "count"];</code>
* @param int|string $var
* @return $this
*/
public function setCount($var)
{
GPBUtil::checkUint64($var);
$this->count = $var;
return $this;
}
/**
* Generated from protobuf field <code>double price_single = 4 [json_name = "priceSingle"];</code>
* @return float
*/
public function getPriceSingle()
{
return $this->price_single;
}
/**
* Generated from protobuf field <code>double price_single = 4 [json_name = "priceSingle"];</code>
* @param float $var
* @return $this
*/
public function setPriceSingle($var)
{
GPBUtil::checkDouble($var);
$this->price_single = $var;
return $this;
}
/**
* Generated from protobuf field <code>double price_sum = 5 [json_name = "priceSum"];</code>
* @return float
*/
public function getPriceSum()
{
return $this->price_sum;
}
/**
* Generated from protobuf field <code>double price_sum = 5 [json_name = "priceSum"];</code>
* @param float $var
* @return $this
*/
public function setPriceSum($var)
{
GPBUtil::checkDouble($var);
$this->price_sum = $var;
return $this;
}
/**
* Generated from protobuf field <code>bool price_net = 6 [json_name = "priceNet"];</code>
* @return bool
*/
public function getPriceNet()
{
return $this->price_net;
}
/**
* Generated from protobuf field <code>bool price_net = 6 [json_name = "priceNet"];</code>
* @param bool $var
* @return $this
*/
public function setPriceNet($var)
{
GPBUtil::checkBool($var);
$this->price_net = $var;
return $this;
}
}