| 1 | <?php |
||
| 7 | abstract class TelegramTypes |
||
| 8 | { |
||
| 9 | 14 | public function __construct(\stdClass $data = null) |
|
| 13 | |||
| 14 | /** |
||
| 15 | * Fills the class with the data passed on through the constructor |
||
| 16 | * |
||
| 17 | * @param \stdClass $data |
||
| 18 | * @return TelegramTypes |
||
| 19 | */ |
||
| 20 | 14 | final protected function populateObject(\stdClass $data = null): TelegramTypes |
|
| 41 | |||
| 42 | /** |
||
| 43 | * The default is that we have no subobjects at all |
||
| 44 | * |
||
| 45 | * @return array |
||
| 46 | */ |
||
| 47 | 13 | protected function mapSubObjects(): array |
|
| 51 | } |
||
| 52 |