1 | <?php |
||
10 | abstract class TelegramTypes |
||
11 | { |
||
12 | protected $logger = null; |
||
13 | |||
14 | 17 | public function __construct(array $data = null, LoggerInterface $logger = null) |
|
23 | |||
24 | /** |
||
25 | * Fills the class with the data passed on through the constructor |
||
26 | * |
||
27 | * @param array $data |
||
28 | * @return TelegramTypes |
||
29 | */ |
||
30 | 17 | final protected function populateObject(array $data = null): TelegramTypes |
|
60 | |||
61 | /** |
||
62 | * The default is that we have no subobjects at all, so this function will return nothing |
||
63 | * |
||
64 | * @param string $key |
||
65 | * @param array $data |
||
66 | * |
||
67 | * @return TelegramTypes |
||
68 | */ |
||
69 | protected function mapSubObjects(string $key, array $data): TelegramTypes |
||
73 | } |
||
74 |
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.