| 1 | <?php |
||
| 8 | class Fragment extends TranslatableEloquent |
||
| 9 | { |
||
| 10 | use Presentable; |
||
| 11 | |||
| 12 | protected $with = ['translations']; |
||
| 13 | |||
| 14 | public $translatedAttributes = ['text']; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @return \App\Models\Fragment|null |
||
| 18 | */ |
||
| 19 | public static function findByName(string $name) |
||
| 25 | |||
| 26 | public static function getGroup(string $group, string $locale) : array |
||
| 40 | } |
||
| 41 |
Since your code implements the magic getter
_get, this function will be called for any read access on an undefined variable. You can add the@propertyannotation to your class or interface to document the existence of this variable.If the property has read access only, you can use the @property-read 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.