1
0
mirror of synced 2025-01-25 01:31:41 +03:00
2023-03-27 15:14:21 +03:00

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;
}
}