| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | interface ParserInterface |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @param string $filePath |
||
| 9 | * @param array $options |
||
| 10 | */ |
||
| 11 | public function __construct($filePath, array $options = []); |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @return bool |
||
| 15 | */ |
||
| 16 | public function open(); |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @return array |
||
| 20 | */ |
||
| 21 | public function getColumnNames(); |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @param int $numRows |
||
| 25 | * |
||
| 26 | * @return array |
||
| 27 | */ |
||
| 28 | public function getData($numRows = 0); |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @return bool |
||
| 32 | */ |
||
| 33 | public function close(); |
||
| 34 | } |
||
| 35 |
For interface and abstract methods, it is impossible to infer the return type from the immediate code. In these cases, it is generally advisible to explicitly annotate these methods with a
@returndoc comment to communicate to implementors of these methods what they are expected to return.