src/app/code/community/EbayEnterprise/Address/Model/Order/Address/Validation.php 1 location
|
@@ 28-34 (lines=7) @@
|
| 25 |
|
* - 'app' => Mage_Core_Model_App |
| 26 |
|
* - 'validator' => EbayEnterprise_Address_Model_Validator |
| 27 |
|
*/ |
| 28 |
|
public function __construct(array $args = []) |
| 29 |
|
{ |
| 30 |
|
list($this->app, $this->validator) = $this->checkTypes( |
| 31 |
|
$this->nullCoalesce($args, 'app', Mage::app()), |
| 32 |
|
$this->nullCoalesce($args, 'validator', Mage::getModel('ebayenterprise_address/validator')) |
| 33 |
|
); |
| 34 |
|
} |
| 35 |
|
|
| 36 |
|
/** |
| 37 |
|
* Type checks for constructor args array. |
src/app/code/community/EbayEnterprise/GiftCard/Block/Sales/Order/Total.php 1 location
|
@@ 29-39 (lines=11) @@
|
| 26 |
|
/** @var EbayEnterprise_GiftCard_Helper_Data */ |
| 27 |
|
protected $helper; |
| 28 |
|
|
| 29 |
|
public function __construct(array $args = []) |
| 30 |
|
{ |
| 31 |
|
list( |
| 32 |
|
$this->giftcardContainer, |
| 33 |
|
$this->helper |
| 34 |
|
) = $this->checkTypes( |
| 35 |
|
$this->nullCoalesce($args, 'giftcard_container', Mage::getModel('ebayenterprise_giftcard/container')), |
| 36 |
|
$this->nullCoalesce($args, 'helper', Mage::helper('ebayenterprise_giftcard')) |
| 37 |
|
); |
| 38 |
|
parent::__construct($args); |
| 39 |
|
} |
| 40 |
|
|
| 41 |
|
/** |
| 42 |
|
* Enforce type checks on construct args array. |
src/app/code/community/EbayEnterprise/Tax/Block/Sales/Order/Tax.php 1 location
|
@@ 33-43 (lines=11) @@
|
| 30 |
|
* @param array May contain: |
| 31 |
|
* - tax_collector => EbayEnterprise_Tax_Model_Collector |
| 32 |
|
*/ |
| 33 |
|
public function __construct(array $args = []) |
| 34 |
|
{ |
| 35 |
|
list( |
| 36 |
|
$this->taxCollector, |
| 37 |
|
$this->helper |
| 38 |
|
) = $this->checkTypes( |
| 39 |
|
$this->nullCoalesce($args, 'tax_collector', Mage::getModel('ebayenterprise_tax/collector')), |
| 40 |
|
$this->nullCoalesce($args, 'helper', Mage::helper('ebayenterprise_tax')) |
| 41 |
|
); |
| 42 |
|
parent::__construct($args); |
| 43 |
|
} |
| 44 |
|
|
| 45 |
|
/** |
| 46 |
|
* Enforce type checks on construct args array. |