Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
17 | public static function fromStdClass(stdClass $stdClass): Agency |
||
18 | { |
||
19 | $agency = new Agency(); |
||
20 | |||
21 | $agency->id = $stdClass->id; |
||
22 | $agency->name = $stdClass->name; |
||
23 | $agency->countryId = $stdClass->countryId; |
||
24 | $agency->active = $stdClass->active; |
||
25 | |||
26 | return $agency; |
||
27 | } |
||
29 |