| Total Complexity | 3 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | final class Machine implements \JsonSerializable |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Cloud instance/machine type |
||
| 11 | * |
||
| 12 | * @var string |
||
| 13 | */ |
||
| 14 | private $type; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @param string $type |
||
| 18 | */ |
||
| 19 | 2 | public function __construct($type) |
|
| 20 | { |
||
| 21 | 2 | $this->type = $type; |
|
| 22 | 2 | } |
|
| 23 | |||
| 24 | /** |
||
| 25 | * @return string |
||
| 26 | */ |
||
| 27 | 1 | public function type() |
|
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @return array |
||
| 34 | */ |
||
| 35 | 1 | public function jsonSerialize() |
|
| 42 |