| 1 | <?php |
||
| 10 | class TranslationDeleted implements CreatableFromArray |
||
| 11 | { |
||
| 12 | private $status; |
||
| 13 | private $message; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @param int $status |
||
| 17 | * @param string $message |
||
| 18 | */ |
||
| 19 | private function __construct(int $status, string $message) |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @param array $data |
||
| 27 | * |
||
| 28 | * @return TranslationDeleted |
||
| 29 | */ |
||
| 30 | public static function createFromArray(array $data) |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @return string |
||
| 48 | */ |
||
| 49 | public function getMessage(): string |
||
| 53 | |||
| 54 | /** |
||
| 55 | * @return int |
||
| 56 | */ |
||
| 57 | public function getStatus(): int |
||
| 61 | } |
||
| 62 |