| 1 | <?php |
||
| 11 | class ArticleTranslation implements ModelInterface |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var string |
||
| 15 | */ |
||
| 16 | private $locale; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | private $title; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var string|null |
||
| 25 | */ |
||
| 26 | private $body; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var string |
||
| 30 | */ |
||
| 31 | private $slug; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * ArticleTranslation constructor. |
||
| 35 | * |
||
| 36 | * @param array $data |
||
| 37 | */ |
||
| 38 | public function __construct(array $data) |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @return string |
||
| 48 | */ |
||
| 49 | public function getLocale(): string |
||
| 53 | |||
| 54 | /** |
||
| 55 | * @return string |
||
| 56 | */ |
||
| 57 | public function getTitle(): string |
||
| 61 | |||
| 62 | /** |
||
| 63 | * @return null|string |
||
| 64 | */ |
||
| 65 | public function getBody() |
||
| 69 | |||
| 70 | /** |
||
| 71 | * @return string |
||
| 72 | */ |
||
| 73 | public function getSlug(): string |
||
| 77 | } |
||
| 78 |