1 | <?php |
||
32 | trait IsSeekable |
||
33 | { |
||
34 | /** |
||
35 | * Seek to specific line (beginning). |
||
36 | * |
||
37 | * Seek to the line specified by $offset, starting from the $whence line. |
||
38 | * |
||
39 | * @param int $offset Offset to seek to |
||
40 | * @param int $whence Position from whence to seek from |
||
41 | * @param string $eol The line terminator string/char |
||
42 | * |
||
43 | * @throws NotYetImplementedException |
||
44 | * |
||
45 | * @return bool True if successful |
||
46 | */ |
||
47 | public function seekLine($offset, $whence = SEEK_SET, $eol = PHP_EOL) |
||
48 | { |
||
49 | throw new NotYetImplementedException('This method not yet implemented.'); |
||
50 | } |
||
51 | |||
52 | abstract public function isSeekable(); |
||
53 | |||
54 | abstract public function seek($offset, $whence = SEEK_SET); |
||
55 | |||
56 | /** |
||
57 | * Assert that this file/stream object is readable. |
||
58 | * |
||
59 | * @throws IOException |
||
60 | */ |
||
61 | 10 | protected function assertIsSeekable() |
|
67 | } |
||
68 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.