| 1 |
<?php |
| 2 |
|
| 3 |
namespace ImportWP\Common\Importer; |
| 4 |
|
| 5 |
interface ConfigInterface |
| 6 |
{ |
| 7 |
/** |
| 8 |
* Get setting |
| 9 |
* |
| 10 |
* @param $key |
| 11 |
* |
| 12 |
* @return mixed |
| 13 |
*/ |
| 14 |
public function get($key); |
| 15 |
|
| 16 |
/** |
| 17 |
* Set setting |
| 18 |
* |
| 19 |
* @param $key |
| 20 |
* @param $data |
| 21 |
* |
| 22 |
* @return mixed |
| 23 |
*/ |
| 24 |
public function set($key, $data); |
| 25 |
|
| 26 |
/** |
| 27 |
* Get data to import |
| 28 |
* |
| 29 |
* @return array |
| 30 |
*/ |
| 31 |
public function getData(); |
| 32 |
|
| 33 |
public function getIndex($key, $record); |
| 34 |
|
| 35 |
public function setIndex($key, $record, $start, $end); |
| 36 |
|
| 37 |
public function readIndexes($key); |
| 38 |
|
| 39 |
public function storeIndexes($key); |
| 40 |
|
| 41 |
public function getRecordCount($key); |
| 42 |
|
| 43 |
public function getIndexFile($key); |
| 44 |
} |
| 45 |
|