Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 1 | Features | 1 |
1 | <?php |
||
27 | public function __construct(object $application) |
||
28 | { |
||
29 | $this->id = $application->id; |
||
30 | $this->uuid = $application->uuid; |
||
31 | $this->name = $application->name; |
||
32 | $this->hosting = $application->hosting; |
||
33 | $this->subscription = $application->subscription; |
||
34 | $this->organization = $application->organization; |
||
35 | if (property_exists($application, 'type')) { |
||
36 | $this->type = $application->type; |
||
37 | } |
||
38 | $this->flags = $application->flags; |
||
39 | $this->status = $application->status; |
||
40 | $this->links = $application->_links; |
||
41 | } |
||
43 |