| Total Complexity | 3 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class Compact extends \ArrayIterator implements \JsonSerializable |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * Construct Compact according to argument if present |
||
| 16 | * |
||
| 17 | * @param array|object $candidate The candidate to be made into Compact |
||
| 18 | */ |
||
| 19 | 2 | public function __construct($candidate = null) |
|
| 24 | 2 | } |
|
| 25 | |||
| 26 | /** |
||
| 27 | * Provides the correct ouput for Json Serialization |
||
| 28 | * |
||
| 29 | * @return array |
||
| 30 | */ |
||
| 31 | 1 | public function jsonSerialize():array |
|
| 37 |