Total Complexity | 6 |
Total Lines | 65 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | 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 item |
||
38 | * |
||
39 | * @return \Aimeos\MShop\Context\Item\Iface Context object |
||
40 | */ |
||
41 | protected function getContext() |
||
44 | } |
||
45 | |||
46 | |||
47 | /** |
||
48 | * Processes the initial subscription |
||
49 | * |
||
50 | * @param \Aimeos\MShop\Subscription\Item\Iface $subscription Subscription item |
||
51 | */ |
||
52 | public function begin( \Aimeos\MShop\Subscription\Item\Iface $subscription ) |
||
54 | } |
||
55 | |||
56 | |||
57 | /** |
||
58 | * Executed before the subscription renewal |
||
59 | * |
||
60 | * @param \Aimeos\MShop\Subscription\Item\Iface $subscription Subscription item |
||
61 | */ |
||
62 | public function renewBefore( \Aimeos\MShop\Subscription\Item\Iface $subscription ) |
||
63 | { |
||
64 | } |
||
65 | |||
66 | |||
67 | /** |
||
68 | * Executed after the subscription renewal |
||
69 | * |
||
70 | * @param \Aimeos\MShop\Subscription\Item\Iface $subscription Subscription item |
||
71 | * @param \Aimeos\MShop\Order\Item\Iface $order Order invoice item |
||
72 | */ |
||
73 | public function renewAfter( \Aimeos\MShop\Subscription\Item\Iface $subscription, \Aimeos\MShop\Order\Item\Iface $order ) |
||
74 | { |
||
75 | } |
||
76 | |||
77 | |||
78 | /** |
||
79 | * Processes the end of the subscription |
||
80 | * |
||
81 | * @param \Aimeos\MShop\Subscription\Item\Iface $subscription Subscription item |
||
82 | */ |
||
83 | public function end( \Aimeos\MShop\Subscription\Item\Iface $subscription ) |
||
85 | } |
||
86 | } |
||
87 |