| Total Complexity | 4 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class Updates extends TdObject |
||
| 15 | { |
||
| 16 | public const TYPE_NAME = 'updates'; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * List of updates. |
||
| 20 | * |
||
| 21 | * @var Update[] |
||
| 22 | */ |
||
| 23 | protected array $updates; |
||
| 24 | |||
| 25 | public function __construct(array $updates) |
||
| 26 | { |
||
| 27 | $this->updates = $updates; |
||
| 28 | } |
||
| 29 | |||
| 30 | public static function fromArray(array $array): Updates |
||
| 31 | { |
||
| 32 | return new static( |
||
| 33 | array_map(fn ($x) => TdSchemaRegistry::fromArray($x), $array['updates']), |
||
| 34 | ); |
||
| 35 | } |
||
| 36 | |||
| 37 | public function typeSerialize(): array |
||
| 42 | ]; |
||
| 43 | } |
||
| 44 | |||
| 45 | public function getUpdates(): array |
||
| 48 | } |
||
| 49 | } |
||
| 50 |