/** * @param array $initParams Must have this key: * - 'response' => IOrderDetailResponse */ public function __construct(array $initParams = []) { list($this->orderHelper, $this->coreConfig, $this->shipping, $this->factory) = $this->checkTypes($this->nullCoalesce($initParams, 'order_helper', Mage::helper('ebayenterprise_order')), $this->nullCoalesce($initParams, 'core_config', Mage::helper('eb2ccore')->getConfigModel()), $this->nullCoalesce($initParams, 'shipping', Mage::getModel('shipping/shipping')), $this->nullCoalesce($initParams, 'factory', Mage::helper('ebayenterprise_order/factory'))); parent::__construct($this->removeKnownKeys($initParams)); }