1
0
mirror of synced 2025-01-26 02:01:40 +03:00

52 lines
1.1 KiB
PHP
Raw Normal View History

2019-12-26 17:47:33 +03:00
<?php
namespace RetailCrm\DeliveryModuleBundle\Model;
use JMS\Serializer\Annotation as Serializer;
class Plate
{
2023-03-27 15:14:21 +03:00
public const TYPE_ORDER = 'order';
public const TYPE_SHIPMENT = 'shipment';
/**
* Тип сущности для печатной формы
*
* @var string
*
* @Serializer\Groups({"get", "set"})
* @Serializer\SerializedName("type")
* @Serializer\Type("string")
*/
public $type;
2019-12-26 17:47:33 +03:00
/**
* Код печатной формы
2020-08-18 17:39:55 +03:00
*
2019-12-26 17:47:33 +03:00
* @var string
*
* @Serializer\Groups({"get", "set"})
* @Serializer\SerializedName("code")
* @Serializer\Type("string")
*/
public $code;
/**
* Наименование печатной формы
2020-08-18 17:39:55 +03:00
*
2019-12-26 17:47:33 +03:00
* @var string
*
* @Serializer\Groups({"get", "set"})
* @Serializer\SerializedName("label")
* @Serializer\Type("string")
*/
public $label;
2023-03-27 15:14:21 +03:00
public function __construct($code, $label, $type = self::TYPE_ORDER)
2019-12-26 17:47:33 +03:00
{
$this->code = $code;
$this->label = $label;
2023-03-27 15:14:21 +03:00
$this->type = $type;
2019-12-26 17:47:33 +03:00
}
}