1 | <?php |
||
7 | class Caldav extends Model |
||
8 | { |
||
9 | //TODO fillable and other fields |
||
10 | |||
11 | /** |
||
12 | * @var string |
||
13 | */ |
||
14 | protected $primaryKey = 'calendar_id'; |
||
15 | |||
16 | /** |
||
17 | * @var array |
||
18 | */ |
||
19 | protected $touches = ['calendar']; |
||
20 | |||
21 | /** |
||
22 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
||
23 | */ |
||
24 | public function Calendar() |
||
28 | |||
29 | //TODO remmeber to don't allow to change timelsot for a caldav claendar |
||
30 | |||
31 | /** |
||
32 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
||
33 | */ |
||
34 | public function Employee() |
||
38 | } |
||
39 |
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.