| 1 | <?php |
||
| 10 | final class DeriveHeaderStrategy implements HeaderStrategyInterface |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var array |
||
| 14 | */ |
||
| 15 | private $headers; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Extracts headers from the given SplFileObject. |
||
| 19 | * |
||
| 20 | * @param SplFileObject $fileObject The delimited file containing the headers. |
||
| 21 | * |
||
| 22 | * @return array |
||
| 23 | */ |
||
| 24 | public function getHeaders(SplFileObject $fileObject) : array |
||
| 30 | |||
| 31 | public function isHeaderRow(array $row) : bool |
||
| 35 | } |
||
| 36 |