| 1 | <?php |
||
| 12 | class TranslationModel |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @Assert\NotBlank() |
||
| 16 | */ |
||
| 17 | private $locale; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @Assert\NotBlank() |
||
| 21 | */ |
||
| 22 | private $domain; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @Assert\NotBlank() |
||
| 26 | */ |
||
| 27 | private $translation; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @Assert\NotBlank() |
||
| 31 | */ |
||
| 32 | private $key; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * TranslationModel constructor |
||
| 36 | * |
||
| 37 | * @param string $locale |
||
| 38 | * @param string $domain |
||
| 39 | * @param string $key |
||
| 40 | * @param string $translation |
||
| 41 | */ |
||
| 42 | public function __construct($locale = null, $domain = null, $key = null, $translation = null) |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @param $locale |
||
| 52 | * @return $this |
||
| 53 | */ |
||
| 54 | public function setLocale($locale) |
||
| 58 | |||
| 59 | /** |
||
| 60 | * @return mixed |
||
| 61 | */ |
||
| 62 | public function getLocale() |
||
| 66 | |||
| 67 | /** |
||
| 68 | * @param $domain |
||
| 69 | * @return $this |
||
| 70 | */ |
||
| 71 | public function setDomain($domain) |
||
| 75 | |||
| 76 | /** |
||
| 77 | * @return mixed |
||
| 78 | */ |
||
| 79 | public function getDomain() |
||
| 83 | |||
| 84 | /** |
||
| 85 | * @param $translation |
||
| 86 | * @return $this |
||
| 87 | */ |
||
| 88 | public function setTranslation($translation) |
||
| 94 | |||
| 95 | /** |
||
| 96 | * @return mixed |
||
| 97 | */ |
||
| 98 | public function getTranslation() |
||
| 102 | |||
| 103 | /** |
||
| 104 | * @param $key |
||
| 105 | * @return $this |
||
| 106 | */ |
||
| 107 | public function setKey($key) |
||
| 113 | |||
| 114 | /** |
||
| 115 | * @return mixed |
||
| 116 | */ |
||
| 117 | public function getKey() |
||
| 121 | } |
||
| 122 |