| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | public function __construct($apiResponse) |
||
| 30 | { |
||
| 31 | $this->objects = new Statistics\Objects($apiResponse->objects); |
||
| 32 | $this->version = new Statistics\Version($apiResponse->version); |
||
| 33 | $this->other = new Statistics\Other($apiResponse->other); |
||
| 34 | $this->loadAverage = new Statistics\LoadAverage($apiResponse->load_avg); |
||
| 35 | $this->memory = new Statistics\Memory($apiResponse->mem); |
||
| 36 | $this->swap = new Statistics\Swap($apiResponse->swap); |
||
| 37 | |||
| 38 | $this->diskSpace = []; |
||
| 39 | foreach ($apiResponse->diskspace as $disk) { |
||
| 40 | $this->diskSpace[(string) $disk->device->name] = new Statistics\DiskSpace($disk->device); |
||
| 41 | } |
||
| 42 | } |
||
| 43 | } |
||
| 44 |