1 | <?php |
||
29 | trait IsSeekable |
||
30 | { |
||
31 | /** |
||
32 | * Seek to specific line (beginning). |
||
33 | * |
||
34 | * Seek to the line specified by $offset, starting from the $whence line. |
||
35 | * |
||
36 | * @param int $offset Offset to seek to |
||
37 | * @param int $whence Position from whence to seek from |
||
38 | * @param string $eol The line terminator string/char |
||
39 | * @return boolean True if successful |
||
40 | * @throws CSVelte\Exception\NotYetImplementedException because it isn't |
||
41 | * implemented yet |
||
42 | */ |
||
43 | public function seekLine($offset, $whence = SEEK_SET, $eol = PHP_EOL) |
||
47 | |||
48 | /** |
||
49 | * Assert that this file/stream object is readable. |
||
50 | * |
||
51 | * @return void |
||
52 | * @throws CSVelte\Exception\IOException if stream isn't readable |
||
53 | */ |
||
54 | 2 | protected function assertIsSeekable() |
|
60 | |||
61 | abstract public function getName(); |
||
62 | |||
63 | abstract public function isSeekable(); |
||
64 | |||
65 | abstract public function seek($offset, $whence); |
||
66 | |||
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.