/** * Initializes the plugin instance * * @param MShop_Context_Item_Interface $context Context object with required objects * @param MShop_Plugin_Item_Interface $item Plugin item object * @param MShop_Plugin_Provider_Interface $item Plugin item object */ public function __construct(MShop_Context_Item_Interface $context, MShop_Plugin_Item_Interface $item, MShop_Plugin_Provider_Interface $provider) { parent::__construct($context, $item); $this->_object = $provider; }
/** * Initializes the object instance * * PHP 7 fails with a wierd fatal error that decorator constructors must be * compatible with the constructor of the factory interface if this * intermediate constructor isn't implemented! * * @param MShop_Context_Item_Interface $context Context object with required objects * @param MShop_Plugin_Item_Interface $item Plugin item object */ public function __construct(MShop_Context_Item_Interface $context, MShop_Plugin_Item_Interface $item) { parent::__construct($context, $item); }