2019-12-26 17:47:33 +03:00
|
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace RetailCrm\DeliveryModuleBundle\Model;
|
|
|
|
|
|
|
|
|
|
use JMS\Serializer\Annotation as Serializer;
|
|
|
|
|
|
|
|
|
|
class Status
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* Код статуса доставки
|
2020-08-18 17:39:55 +03:00
|
|
|
|
*
|
2019-12-26 17:47:33 +03:00
|
|
|
|
* @var string
|
|
|
|
|
*
|
|
|
|
|
* @Serializer\Groups({"get"})
|
|
|
|
|
* @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"})
|
|
|
|
|
* @Serializer\SerializedName("name")
|
|
|
|
|
* @Serializer\Type("string")
|
|
|
|
|
*/
|
|
|
|
|
public $name;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Если заказ находится в статусе у которого isEditable:true, это означает можно редактировать данные доставки
|
2020-08-18 17:39:55 +03:00
|
|
|
|
*
|
2019-12-26 17:47:33 +03:00
|
|
|
|
* @var bool
|
|
|
|
|
*
|
|
|
|
|
* @Serializer\Groups({"get"})
|
|
|
|
|
* @Serializer\SerializedName("isEditable")
|
|
|
|
|
* @Serializer\Type("boolean")
|
|
|
|
|
*/
|
|
|
|
|
public $isEditable = false;
|
|
|
|
|
|
|
|
|
|
public function __construct($code, $name, $isEditable)
|
|
|
|
|
{
|
|
|
|
|
$this->code = $code;
|
|
|
|
|
$this->name = $name;
|
|
|
|
|
$this->isEditable = $isEditable;
|
|
|
|
|
}
|
|
|
|
|
}
|