1 | <?php namespace Modules\Translation\Repositories\Eloquent; |
||
7 | class EloquentTranslationRepository extends EloquentBaseRepository implements TranslationRepository |
||
8 | { |
||
9 | /** |
||
10 | * @param string $key |
||
11 | * @param string $locale |
||
12 | * @return string |
||
13 | */ |
||
14 | public function findByKeyAndLocale($key, $locale = null) |
||
25 | |||
26 | public function allFormatted() |
||
40 | |||
41 | public function saveTranslationForLocaleAndKey($locale, $key, $value) |
||
47 | |||
48 | public function findTranslationByKey($key) |
||
52 | |||
53 | /** |
||
54 | * Update the given translation key with the given data |
||
55 | * @param string $key |
||
56 | * @param array $data |
||
57 | * @return mixed |
||
58 | */ |
||
59 | public function updateFromImport($key, array $data) |
||
64 | |||
65 | /** |
||
66 | * Set the given value on the given TranslationTranslation |
||
67 | * @param TranslationTranslation $translationTranslation |
||
68 | * @param string $value |
||
69 | * @return void |
||
70 | */ |
||
71 | public function updateTranslationToValue(TranslationTranslation $translationTranslation, $value) |
||
76 | } |
||
77 |
Since your code implements the magic setter
_set
, this function will be called for any write access on an undefined variable. You can add the@property
annotation to your class or interface to document the existence of this variable.Since the property has write access only, you can use the @property-write annotation instead.
Of course, you may also just have mistyped another name, in which case you should fix the error.
See also the PhpDoc documentation for @property.