1 | <?php |
||
13 | trait SchemalessAttributesTrait |
||
14 | { |
||
15 | /** |
||
16 | * @var |
||
17 | */ |
||
18 | private $initializeSchemalessAttributesTrait; |
||
19 | |||
20 | /** |
||
21 | * Get the casts array. |
||
22 | * |
||
23 | * @return array |
||
24 | */ |
||
25 | public function getCasts() |
||
36 | |||
37 | public function initializeSchemalessAttributesTrait() |
||
43 | |||
44 | /** |
||
45 | * @return array |
||
46 | */ |
||
47 | public function getSchemalessAttributes() |
||
51 | |||
52 | /** |
||
53 | * @param $key |
||
54 | * @return mixed|SchemalessAttributes |
||
55 | */ |
||
56 | public function __get($key) |
||
64 | } |
||
65 |
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.