1 | <?php |
||
27 | class Calendar extends Model |
||
28 | { |
||
29 | /** |
||
30 | * The attributes that are mass assignable. |
||
31 | * |
||
32 | * @var array |
||
33 | */ |
||
34 | protected $fillable = ['name']; |
||
35 | |||
36 | /** |
||
37 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
||
38 | */ |
||
39 | public function employee() |
||
43 | |||
44 | /** |
||
45 | * @return \Illuminate\Database\Eloquent\Relations\HasMany |
||
46 | */ |
||
47 | public function timeslots() |
||
51 | |||
52 | /** |
||
53 | * @return \Illuminate\Database\Eloquent\Relations\HasOne|null |
||
54 | */ |
||
55 | public function Caldav() |
||
61 | } |
||
62 |
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.