1 | <?php |
||
5 | class ArrayAccessor implements DataAccessorInterface |
||
6 | { |
||
7 | private $data; |
||
8 | |||
9 | private $changed; |
||
10 | |||
11 | private $initData; |
||
12 | |||
13 | public function __construct(array $initData = []) |
||
18 | |||
19 | public function add($key, $value) |
||
24 | |||
25 | public function set($key, $value) |
||
30 | |||
31 | public function get($key) |
||
37 | |||
38 | /** |
||
39 | * @return array |
||
40 | */ |
||
41 | public function getData() |
||
45 | |||
46 | public function isChanged() |
||
50 | |||
51 | public function reset() |
||
56 | } |
||
57 |
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.