1 | <?php namespace jlourenco\base\Models; |
||
6 | class Settings extends Model |
||
7 | { |
||
8 | |||
9 | /** |
||
10 | * To allow user actions identity (Created_by, Updated_by, Deleted_by) |
||
11 | */ |
||
12 | use Creation; |
||
13 | |||
14 | /** |
||
15 | * {@inheritDoc} |
||
16 | */ |
||
17 | protected $table = 'Settings'; |
||
18 | |||
19 | /** |
||
20 | * {@inheritDoc} |
||
21 | */ |
||
22 | protected $fillable = [ |
||
23 | 'value' |
||
24 | ]; |
||
25 | |||
26 | public function options() |
||
43 | |||
44 | } |
||
45 |
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@property
annotation 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.