| 1 | <?php |
||
| 6 | class SalesmanAbstract implements SalesmanInterface |
||
| 7 | { |
||
| 8 | use RetailerNumberAwareTrait, |
||
| 9 | SalesmanIdAwareTrait; |
||
| 10 | |||
| 11 | /** |
||
| 12 | * @var string |
||
| 13 | */ |
||
| 14 | public $first_name; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | public $last_name; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | public $email; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var int |
||
| 28 | */ |
||
| 29 | public $user_id; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @var int |
||
| 33 | */ |
||
| 34 | public $is_active; |
||
| 35 | |||
| 36 | |||
| 37 | |||
| 38 | /** |
||
| 39 | * @return array |
||
| 40 | */ |
||
| 41 | 4 | public function __debugInfo() { |
|
| 42 | return [ |
||
| 43 | 4 | 'SalesmanID' => $this->getSalesmanId(), |
|
| 44 | 4 | 'FullName' => $this->getFullName(), |
|
| 45 | 4 | 'Email' => $this->getEmail(), |
|
| 46 | 4 | 'isActive' => $this->isActive(), |
|
| 47 | 4 | 'UserID' => $this->getUserId() |
|
| 48 | ]; |
||
| 49 | } |
||
| 50 | |||
| 51 | |||
| 52 | /** |
||
| 53 | * @return string |
||
| 54 | */ |
||
| 55 | 8 | public function getFirstName() |
|
| 59 | |||
| 60 | |||
| 61 | /** |
||
| 62 | * @return string |
||
| 63 | */ |
||
| 64 | 8 | public function getLastName() |
|
| 68 | |||
| 69 | |||
| 70 | /** |
||
| 71 | * @return string |
||
| 72 | */ |
||
| 73 | 8 | public function getEmail() |
|
| 77 | |||
| 78 | |||
| 79 | /** |
||
| 80 | * @return string |
||
| 81 | */ |
||
| 82 | 8 | public function getUserId() { |
|
| 85 | |||
| 86 | |||
| 87 | /** |
||
| 88 | * @return bool |
||
| 89 | */ |
||
| 90 | 40 | public function isActive() { |
|
| 93 | |||
| 94 | |||
| 95 | /** |
||
| 96 | * @return string |
||
| 97 | */ |
||
| 98 | 8 | public function getFullName() |
|
| 105 | |||
| 106 | |||
| 107 | /** |
||
| 108 | * @return string |
||
| 109 | */ |
||
| 110 | 4 | public function getDisplayName() |
|
| 117 | |||
| 118 | |||
| 119 | |||
| 120 | |||
| 121 | } |
||
| 122 |