1 | <?php |
||
20 | class Base |
||
21 | extends \Aimeos\Controller\Common\Coupon\Import\Csv\Base |
||
|
|||
22 | { |
||
23 | private $context; |
||
24 | private $mapping; |
||
25 | private $object; |
||
26 | |||
27 | |||
28 | /** |
||
29 | * Initializes the object |
||
30 | * |
||
31 | * @param \Aimeos\MShop\Context\Item\Iface $context Context object |
||
32 | * @param array $mapping Associative list of field position in CSV as key and domain item key as value |
||
33 | * @param \Aimeos\Controller\Common\Coupon\Import\Csv\Processor\Iface $object Decorated processor |
||
34 | */ |
||
35 | public function __construct( \Aimeos\MShop\Context\Item\Iface $context, array $mapping, |
||
42 | |||
43 | |||
44 | /** |
||
45 | * Returns the context item |
||
46 | * |
||
47 | * @return \Aimeos\MShop\Context\Item\Iface Context object |
||
48 | */ |
||
49 | protected function getContext() |
||
53 | |||
54 | |||
55 | /** |
||
56 | * Returns the mapping list |
||
57 | * |
||
58 | * @return array Associative list of field positions in CSV as keys and domain item keys as values |
||
59 | */ |
||
60 | protected function getMapping() |
||
64 | |||
65 | |||
66 | /** |
||
67 | * Returns the decorated processor object |
||
68 | * |
||
69 | * @return \Aimeos\Controller\Common\Coupon\Import\Csv\Processor\Iface Processor object |
||
70 | * @throws \Aimeos\Controller\Jobs\Exception If no processor object is available |
||
71 | */ |
||
72 | protected function getObject() |
||
80 | } |
||
81 |