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