| 1 | <?php |
||
| 11 | abstract class AbstractReader implements ReaderInterface |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @param string $line |
||
| 15 | * |
||
| 16 | * @return bool |
||
| 17 | */ |
||
| 18 | public function test(string $line) : bool |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @param string $line |
||
| 27 | * |
||
| 28 | * @throws \BrowscapPHP\Exception\ReaderException |
||
| 29 | * @return string |
||
| 30 | */ |
||
| 31 | public function read(string $line) : string |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @param string $line |
||
| 44 | * |
||
| 45 | * @return array |
||
| 46 | */ |
||
| 47 | protected function match(string $line) : array |
||
| 57 | |||
| 58 | /** |
||
| 59 | * @return string |
||
| 60 | */ |
||
| 61 | abstract protected function getRegex() : string; |
||
| 62 | } |
||
| 63 |