Total Complexity | 3 |
Total Lines | 25 |
Duplicated Lines | 0 % |
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 | public function __construct($candidate = null) |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * Provides the correct ouput for Json Serialization |
||
30 | * |
||
31 | * @return array |
||
32 | */ |
||
33 | public function jsonSerialize(): array |
||
39 |