@@ -34,6 +34,9 @@ discard block |
||
34 | 34 | }); |
35 | 35 | } |
36 | 36 | |
37 | + /** |
|
38 | + * @param string $locale |
|
39 | + */ |
|
37 | 40 | public function translate(?string $locale = null, bool $withFallback = false): ?Model |
38 | 41 | { |
39 | 42 | return $this->getTranslation($locale, $withFallback); |
@@ -179,6 +182,9 @@ discard block |
||
179 | 182 | return parent::getAttribute($key); |
180 | 183 | } |
181 | 184 | |
185 | + /** |
|
186 | + * @param string $value |
|
187 | + */ |
|
182 | 188 | public function setAttribute(string $key, $value) |
183 | 189 | { |
184 | 190 | [$attribute, $locale] = $this->getAttributeAndLocale($key); |