| Total Complexity | 2 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 20 | class Base |
||
| 21 | { |
||
| 22 | private $context; |
||
| 23 | |||
| 24 | |||
| 25 | /** |
||
| 26 | * Initializes the object |
||
| 27 | * |
||
| 28 | * @param \Aimeos\MShop\Context\Item\Iface $context Context object |
||
| 29 | */ |
||
| 30 | public function __construct( \Aimeos\MShop\Context\Item\Iface $context ) |
||
| 31 | { |
||
| 32 | $this->context = $context; |
||
| 33 | } |
||
| 34 | |||
| 35 | |||
| 36 | /** |
||
| 37 | * Returns the context object |
||
| 38 | * |
||
| 39 | * @return \Aimeos\MShop\Context\Item\Iface Context object |
||
| 40 | */ |
||
| 41 | protected function getContext(): \Aimeos\MShop\Context\Item\Iface |
||
| 44 | } |
||
| 45 | } |
||
| 46 |