| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | 1 | protected function __construct($server) { |
|
| 20 | 1 | $this->id = $server->id; |
|
| 21 | 1 | $this->state = $server->state; |
|
| 22 | 1 | $this->image = Image::makeFromImageJson($server->image); |
|
| 23 | 1 | $this->publicIp = Ip::makeFromIpJson($server->public_ip); |
|
| 24 | 1 | $this->privateIp = Ip::makeFromIpAddress($server->private_ip); |
|
| 25 | 1 | $this->commercialType = $server->commercial_type; |
|
| 26 | 1 | } |
|
| 27 | |||
| 86 | } |