Conditions | 3 |
Paths | 1 |
Total Lines | 5 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
36 | public static function fromArray(array $array): ChatEventLocationChanged |
||
37 | { |
||
38 | return new static( |
||
39 | (isset($array['old_location']) ? TdSchemaRegistry::fromArray($array['old_location']) : null), |
||
40 | (isset($array['new_location']) ? TdSchemaRegistry::fromArray($array['new_location']) : null), |
||
41 | ); |
||
63 |