52 lines
1.1 KiB
PHP
52 lines
1.1 KiB
PHP
<?php
|
|
|
|
namespace RetailCrm\DeliveryModuleBundle\Model;
|
|
|
|
use JMS\Serializer\Annotation as Serializer;
|
|
|
|
class Plate
|
|
{
|
|
public const TYPE_ORDER = 'order';
|
|
public const TYPE_SHIPMENT = 'shipment';
|
|
|
|
/**
|
|
* Тип сущности для печатной формы
|
|
*
|
|
* @var string
|
|
*
|
|
* @Serializer\Groups({"get", "set"})
|
|
* @Serializer\SerializedName("type")
|
|
* @Serializer\Type("string")
|
|
*/
|
|
public $type;
|
|
|
|
/**
|
|
* Код печатной формы
|
|
*
|
|
* @var string
|
|
*
|
|
* @Serializer\Groups({"get", "set"})
|
|
* @Serializer\SerializedName("code")
|
|
* @Serializer\Type("string")
|
|
*/
|
|
public $code;
|
|
|
|
/**
|
|
* Наименование печатной формы
|
|
*
|
|
* @var string
|
|
*
|
|
* @Serializer\Groups({"get", "set"})
|
|
* @Serializer\SerializedName("label")
|
|
* @Serializer\Type("string")
|
|
*/
|
|
public $label;
|
|
|
|
public function __construct($code, $label, $type = self::TYPE_ORDER)
|
|
{
|
|
$this->code = $code;
|
|
$this->label = $label;
|
|
$this->type = $type;
|
|
}
|
|
}
|