1 | <?php |
||
14 | class StringIterator extends \ArrayIterator |
||
15 | { |
||
16 | /** |
||
17 | * StringIterator constructor. |
||
18 | * |
||
19 | * @param string $string |
||
20 | */ |
||
21 | 12 | public function __construct(string $string = '') |
|
25 | |||
26 | /** |
||
27 | * @param string $value |
||
28 | * |
||
29 | * @return bool |
||
30 | */ |
||
31 | 9 | public function is(string $value): bool |
|
35 | |||
36 | /** |
||
37 | * @param string $value |
||
38 | * |
||
39 | * @return bool |
||
40 | */ |
||
41 | 12 | public function isNot(string $value): bool |
|
45 | |||
46 | /** |
||
47 | * @return string |
||
48 | */ |
||
49 | 3 | public function __toString() |
|
53 | } |
||
54 |