dallgoot /
yaml
| 1 | <?php |
||
| 2 | |||
|
0 ignored issues
–
show
Coding Style
introduced
by
Loading history...
|
|||
| 3 | namespace Dallgoot\Yaml; |
||
| 4 | |||
| 5 | use Dallgoot\Yaml\Types as T; |
||
| 6 | |||
| 7 | /** |
||
|
0 ignored issues
–
show
|
|||
| 8 | * |
||
| 9 | */ |
||
|
0 ignored issues
–
show
|
|||
| 10 | class Compact extends \ArrayIterator |
||
| 11 | { |
||
| 12 | |||
| 13 | public function __construct($argument) |
||
|
0 ignored issues
–
show
|
|||
| 14 | { |
||
| 15 | if ($argument instanceof \Countable && count($argument) > 0) { |
||
| 16 | # it's an array-like |
||
|
0 ignored issues
–
show
|
|||
| 17 | } else { |
||
| 18 | //it's an object-like |
||
| 19 | } |
||
| 20 | } |
||
| 21 | } |
||
| 22 |