Total Complexity | 2 |
Total Lines | 18 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
5 | class StringIterator extends \ArrayIterator |
||
6 | { |
||
7 | /** |
||
8 | * StringIterator constructor. |
||
9 | * |
||
10 | * @param string $string |
||
11 | */ |
||
12 | public function __construct(string $string) |
||
13 | { |
||
14 | parent::__construct(str_split($string)); |
||
15 | } |
||
16 | |||
17 | /** |
||
18 | * @return int |
||
19 | */ |
||
20 | public function ord(): int |
||
23 | } |
||
24 | } |
||
25 |