| 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 ) |
||
| 34 | |||
| 35 | |||
| 36 | /** |
||
| 37 | * Returns the context item |
||
| 38 | * |
||
| 39 | * @return \Aimeos\MShop\Context\Item\Iface Context object |
||
| 40 | */ |
||
| 41 | protected function getContext() |
||
| 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 ) |
||
| 55 | |||
| 56 | |||
| 57 | /** |
||
| 58 | * Processes the subscription renewal |
||
| 59 | * |
||
| 60 | * @param \Aimeos\MShop\Subscription\Item\Iface $subscription Subscription item |
||
| 61 | */ |
||
| 62 | public function renew( \Aimeos\MShop\Subscription\Item\Iface $subscription ) |
||
| 65 | |||
| 66 | |||
| 67 | /** |
||
| 68 | * Processes the end of the subscription |
||
| 69 | * |
||
| 70 | * @param \Aimeos\MShop\Subscription\Item\Iface $subscription Subscription item |
||
| 71 | */ |
||
| 72 | public function end( \Aimeos\MShop\Subscription\Item\Iface $subscription ) |
||
| 75 | } |
||
| 76 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.