| Total Complexity | 3 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | abstract class Base |
||
| 21 | { |
||
| 22 | use \Aimeos\Controller\Common\Common\Import\Traits; |
||
| 23 | |||
| 24 | |||
| 25 | private $context; |
||
| 26 | |||
| 27 | |||
| 28 | /** |
||
| 29 | * Initializes the object |
||
| 30 | * |
||
| 31 | * @param \Aimeos\MShop\Context\Item\Iface $context Context object |
||
| 32 | */ |
||
| 33 | public function __construct( \Aimeos\MShop\Context\Item\Iface $context ) |
||
| 34 | { |
||
| 35 | $this->context = $context; |
||
| 36 | } |
||
| 37 | |||
| 38 | |||
| 39 | /** |
||
| 40 | * Cleanup before removing the object |
||
| 41 | */ |
||
| 42 | public function __destruct() |
||
| 45 | } |
||
| 46 | |||
| 47 | |||
| 48 | /** |
||
| 49 | * Returns the context item |
||
| 50 | * |
||
| 51 | * @return \Aimeos\MShop\Context\Item\Iface Context object |
||
| 52 | */ |
||
| 53 | protected function getContext() |
||
| 58 |