1 | <?php |
||
16 | class EbayEnterprise_GiftCard_Helper_Data extends Mage_Core_Helper_Abstract implements EbayEnterprise_Eb2cCore_Helper_Interface |
||
17 | { |
||
18 | const ZERO_BALANCE_CARD_MESSAGE = 'EbayEnterprise_GiftCard_Zero_Balance_Card'; |
||
19 | const GIFT_CARD_ADD_SUCCESS = 'EbayEnterprise_GiftCard_Cart_Add_Success'; |
||
20 | const GIFT_CARD_REMOVE_SUCCESS = 'EbayEnterprise_GiftCard_Cart_Remove_Success'; |
||
21 | |||
22 | /** |
||
23 | * Type checks for self::__construct $initParams |
||
24 | * @param EbayEnterprise_GiftCard_Model_IContainer $checkoutSession |
||
|
|||
25 | * @param EbayEnterprise_MageLog_Helper_Data $logger |
||
26 | * @return mixed[] |
||
27 | */ |
||
28 | protected function _checkTypes( |
||
33 | |||
34 | /** |
||
35 | * Return the value at field in array if it exists. Otherwise, use the |
||
36 | * default value. |
||
37 | * @param array $arr |
||
38 | * @param string|int $field Valid array key |
||
39 | * @param mixed $default |
||
40 | * @return mixed |
||
41 | */ |
||
42 | protected function _nullCoalesce(array $arr, $field, $default) |
||
46 | |||
47 | /** |
||
48 | * @see EbayEnterprise_Eb2cCore_Helper_Interface::getConfigModel |
||
49 | * @param mixed $store |
||
50 | * @return EbayEnterprise_Eb2cCore_Model_Config_Registry |
||
51 | */ |
||
52 | public function getConfigModel($store = null) |
||
58 | |||
59 | /** |
||
60 | * Add a gift card to the container. Will make the gift card balance check |
||
61 | * and make sure card can be applied to the order. |
||
62 | * @param EbayEnterprise_GiftCard_Model_IGiftcard $card |
||
63 | * @return self |
||
64 | * @throws EbayEnterprise_GiftCard_Exception If gift card could not be added to the order. |
||
65 | */ |
||
66 | public function addGiftCardToOrder( |
||
78 | } |
||
79 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.