| 1 |
<?php |
| 2 |
|
| 3 |
namespace ImportWP\Common\Importer; |
| 4 |
|
| 5 |
interface FileInterface |
| 6 |
{ |
| 7 |
|
| 8 |
/** |
| 9 |
* Is there record next |
| 10 |
* |
| 11 |
* @return bool |
| 12 |
*/ |
| 13 |
public function hasNextRecord(); |
| 14 |
|
| 15 |
/** |
| 16 |
* Is there record previous |
| 17 |
* |
| 18 |
* @return bool |
| 19 |
*/ |
| 20 |
public function hasPrevRecord(); |
| 21 |
|
| 22 |
/** |
| 23 |
* Get next record |
| 24 |
* |
| 25 |
* @return array |
| 26 |
*/ |
| 27 |
public function getNextRecord(); |
| 28 |
|
| 29 |
/** |
| 30 |
* Get record |
| 31 |
* |
| 32 |
* @param int $index |
| 33 |
* |
| 34 |
* @return string |
| 35 |
*/ |
| 36 |
public function getRecord($index = 0); |
| 37 |
|
| 38 |
/** |
| 39 |
* Get record count |
| 40 |
* |
| 41 |
* @return int |
| 42 |
*/ |
| 43 |
public function getRecordCount(); |
| 44 |
|
| 45 |
/** |
| 46 |
* Get previous Record |
| 47 |
* |
| 48 |
* @return mixed |
| 49 |
*/ |
| 50 |
public function getPreviousRecord(); |
| 51 |
} |
| 52 |
|