Conditions | 5 |
Paths | 16 |
Total Lines | 15 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | public function __construct(object $team) |
||
20 | { |
||
21 | $this->uuid = $team->uuid; |
||
22 | $this->name = $team->name; |
||
23 | if (property_exists($team, 'created_at')) { |
||
24 | $this->created_at = $team->created_at; |
||
25 | } |
||
26 | if (property_exists($team, 'updated_at')) { |
||
27 | $this->updated_at = $team->updated_at; |
||
28 | } |
||
29 | if (property_exists($team, 'organization')) { |
||
30 | $this->organization = $team->organization; |
||
31 | } |
||
32 | if (property_exists($team, '_links')) { |
||
33 | $this->links = $team->_links; |
||
34 | } |
||
37 |