1 | <?php |
||
9 | class BaseImport implements ToModel, WithHeadingRow, ImportContract |
||
10 | { |
||
11 | use Importable; |
||
12 | |||
13 | /** |
||
14 | * @var \Distilleries\Expendable\Models\BaseModel |
||
15 | */ |
||
16 | private $model; |
||
17 | |||
18 | 4 | public function __construct($model) |
|
22 | |||
23 | 4 | public function importFromFile($filepath) |
|
27 | |||
28 | /** |
||
29 | * @inheritdoc |
||
30 | */ |
||
31 | 4 | public function model(array $row) |
|
40 | |||
41 | /** |
||
42 | * @param mixed $model |
||
43 | * @return $this |
||
44 | */ |
||
45 | 4 | public function setModel($model) |
|
51 | } |