| Total Complexity | 3 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | class PHPReader extends Reader |
||
| 6 | { |
||
| 7 | private $data; |
||
| 8 | |||
| 9 | /** |
||
| 10 | * Reader constructor. |
||
| 11 | * |
||
| 12 | * @param string $data |
||
| 13 | * |
||
| 14 | * @throws \Exception |
||
| 15 | */ |
||
| 16 | public function __construct($data) |
||
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * {@inheritdoc} |
||
| 25 | */ |
||
| 26 | protected function computeFileSize() |
||
| 27 | { |
||
| 28 | return strlen($this->data); |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * {@inheritdoc} |
||
| 33 | */ |
||
| 34 | protected function read($offset, $length) |
||
| 37 | } |
||
| 38 | } |
||
| 39 |