| 1 | <?php |
||
| 7 | class Page extends Model |
||
| 8 | { |
||
| 9 | public $table = 'squanto_pages'; |
||
| 10 | |||
| 11 | 41 | public static function make($key) |
|
| 23 | |||
| 24 | 41 | public static function findOrCreateByKey($key) |
|
| 32 | |||
| 33 | 45 | public static function findByKey($key) |
|
| 37 | |||
| 38 | public function lines() |
||
| 42 | |||
| 43 | public static function getAll() |
||
| 47 | |||
| 48 | public function scopeSequence($query) |
||
| 52 | } |
||
| 53 |
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@propertyannotation 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.