1 | <?php |
||
16 | class StringIterator extends \ArrayIterator |
||
17 | { |
||
18 | /** |
||
19 | * StringIterator constructor. |
||
20 | */ |
||
21 | 44 | public function __construct(string $string = '') |
|
25 | |||
26 | 44 | /** |
|
27 | * Test if current character is equal to a value, or (if $value is an array) is one of the values in the array. |
||
28 | 44 | * |
|
29 | * @param string|array $value test if current character is equal to, or is in, $value |
||
30 | * |
||
31 | 44 | * @return bool true if current character is, or is one of, the values |
|
32 | */ |
||
33 | 44 | public function is($value): bool |
|
41 | 5 | ||
42 | /** |
||
43 | * Test if current character is not equal to a value, or (if $value is an array) is not any of the values in the array. |
||
44 | 5 | * |
|
45 | * @param string|array $value test if current character is not equal to, or is not any of, $value |
||
46 | * |
||
47 | * @return bool true if current character is not, or is not one of, the values |
||
48 | */ |
||
49 | public function isNot($value): bool |
||
53 | |||
54 | public function getRemainingAsString(): string |
||
64 | |||
65 | /** |
||
66 | * @return string |
||
67 | */ |
||
68 | public function __toString() |
||
72 | } |
||
73 |