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