/** * @param Context $context * @param Encoder $jsonEncoder * @param array $layoutProcessors * @param array $data */ public function __construct(Context $context, Encoder $jsonEncoder, array $layoutProcessors = [], array $data = []) { parent::__construct($context, $data); $this->jsonEncoder = $jsonEncoder; $this->_isScopePrivate = true; $this->jsLayout = isset($data['jsLayout']) && is_array($data['jsLayout']) ? $data['jsLayout'] : []; $this->layoutProcessors = $layoutProcessors; }
/** * @param Template\Context $context * @param Cart $cartHelper * @param array $data * @codeCoverageIgnore */ public function __construct(Template\Context $context, Cart $cartHelper, array $data = []) { $this->cartHelper = $cartHelper; parent::__construct($context, $data); }
/** * @param Template\Context $context * @param Data $wishlistHelper * @param array $data */ public function __construct(Template\Context $context, Data $wishlistHelper, array $data = []) { $this->wishlistHelper = $wishlistHelper; parent::__construct($context, $data); }