Total Complexity | 4 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
19 | final class StringByteReader implements ByteReaderInterface |
||
20 | { |
||
21 | use ByteReaderDisableWriteAccessTrait; |
||
22 | |||
23 | public function __construct( |
||
24 | private string $source |
||
25 | ) { |
||
26 | } |
||
27 | |||
28 | public function offsetExists($offset): bool |
||
29 | { |
||
30 | return isset($this->source[$offset]); |
||
31 | } |
||
32 | |||
33 | public function offsetGet($offset): int |
||
36 | } |
||
37 | |||
38 | public function createSliceAsString(int $offset, int $size): string |
||
41 | } |
||
42 | } |
||
43 |