1 | <?php |
||
14 | class PropertySupportBehavior extends Behavior |
||
15 | { |
||
16 | public $property; |
||
17 | |||
18 | private $_allowedMethods = [ |
||
19 | 'propertyTerm' => 'getPropertyTerm', |
||
20 | 'properties' => 'getProperties', |
||
21 | ]; |
||
22 | |||
23 | public function canGetProperty($name, $checkVars = true) |
||
31 | |||
32 | public function __get($name) |
||
40 | |||
41 | public function hasMethod($name) |
||
45 | |||
46 | public function getPropertyTerm() |
||
50 | |||
51 | public function getProperties($properties = []) |
||
55 | } |
||
56 |
An attempt at access to an undefined property has been detected. This may either be a typographical error or the property has been renamed but there are still references to its old name.
If you really want to allow access to undefined properties, you can define magic methods to allow access. See the php core documentation on Overloading.