1
0
mirror of synced 2025-01-08 10:27:09 +03:00
DeliveryModuleBundle/Model/Manager.php
2020-02-19 19:00:09 +03:00

84 lines
1.5 KiB
PHP

<?php
namespace RetailCrm\DeliveryModuleBundle\Model;
use JMS\Serializer\Annotation as Serializer;
class Manager
{
/**
* Идентификатор менеджера.
*
* @var int
*
* @Serializer\Groups({"get"})
* @Serializer\SerializedName("id")
* @Serializer\Type("integer")
*/
public $id;
/**
* Фамилия.
*
* @var string
*
* @Serializer\Groups({"get"})
* @Serializer\SerializedName("lastName")
* @Serializer\Type("string")
*/
public $lastName;
/**
* Имя.
*
* @var string
*
* @Serializer\Groups({"get"})
* @Serializer\SerializedName("firstName")
* @Serializer\Type("string")
*/
public $firstName;
/**
* Отчество.
*
* @var string
*
* @Serializer\Groups({"get"})
* @Serializer\SerializedName("patronymic")
* @Serializer\Type("string")
*/
public $patronymic;
/**
* Телефон.
*
* @var string
*
* @Serializer\Groups({"get"})
* @Serializer\SerializedName("phone")
* @Serializer\Type("string")
*/
public $phone;
/**
* E-mail.
*
* @var string
*
* @Serializer\Groups({"get"})
* @Serializer\SerializedName("email")
* @Serializer\Type("string")
*/
public $email;
public function getNickName(): ?string
{
$result = trim(
$this->lastName . ' ' . $this->firstName . ' ' . $this->patronymic
);
return $result;
}
}