| 1 | <?php |
||
| 17 | final class EmployeeFired implements NamedMessage |
||
| 18 | { |
||
| 19 | /** @var string */ |
||
| 20 | private $id; |
||
| 21 | |||
| 22 | /** @var string */ |
||
| 23 | private $name; |
||
| 24 | |||
| 25 | /** @var string */ |
||
| 26 | private $position; |
||
| 27 | |||
| 28 | public function __construct(string $id, string $name, string $position) |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @return string |
||
| 37 | */ |
||
| 38 | public function getEmployeeId(): string |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @return string |
||
| 45 | */ |
||
| 46 | public function getEmployeeName(): string |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @return string |
||
| 53 | */ |
||
| 54 | public function getEmployeePosition(): string |
||
| 58 | |||
| 59 | /** |
||
| 60 | * {@inheritdoc} |
||
| 61 | */ |
||
| 62 | public static function messageName(): string |
||
| 66 | } |
||
| 67 |