Total Complexity | 3 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
12 | class SymbolIterator extends IteratorIterator implements SymbolIteratorInterface |
||
13 | { |
||
14 | /** |
||
15 | * Constructor. |
||
16 | * |
||
17 | * @param SymbolInterface ...$symbols |
||
18 | */ |
||
19 | 3 | public function __construct(SymbolInterface ...$symbols) |
|
20 | { |
||
21 | 3 | parent::__construct( |
|
22 | 3 | new ArrayIterator($symbols) |
|
23 | ); |
||
24 | 3 | } |
|
25 | |||
26 | /** |
||
27 | * Get the current symbol. |
||
28 | * |
||
29 | * @return SymbolInterface |
||
30 | */ |
||
31 | 2 | public function current(): SymbolInterface |
|
32 | { |
||
33 | 2 | return parent::current(); |
|
34 | } |
||
35 | |||
36 | /** |
||
37 | * Specify data that should be serialized to JSON. |
||
38 | * |
||
39 | * @return array |
||
40 | */ |
||
41 | 3 | public function jsonSerialize(): array |
|
44 | } |
||
45 | } |
||
46 |