@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | * Return the value at field in array if it exists. Otherwise, use the |
60 | 60 | * default value. |
61 | 61 | * @param array $arr |
62 | - * @param string|int $field Valid array key |
|
62 | + * @param string $field Valid array key |
|
63 | 63 | * @param mixed $default |
64 | 64 | * @return mixed |
65 | 65 | */ |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | * |
141 | 141 | * @param IShipGroupIterable |
142 | 142 | * @param Mage_Sales_Model_Order_Item[] |
143 | - * @return array |
|
143 | + * @return EbayEnterprise_Order_Model_Create_Itemreferencepair[] |
|
144 | 144 | */ |
145 | 145 | protected function removeVirtualGiftCardPayloads(IShipGroupIterable $shipGroups, array $virtualGiftCards) |
146 | 146 | { |
@@ -391,6 +391,7 @@ discard block |
||
391 | 391 | * |
392 | 392 | * @param Varien_Object[] |
393 | 393 | * @param string |
394 | + * @param string $indexField |
|
394 | 395 | * @return Varien_Object[] |
395 | 396 | */ |
396 | 397 | protected function createItemIndex(array $items, $indexField) |
@@ -13,15 +13,15 @@ |
||
13 | 13 | * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
14 | 14 | */ |
15 | 15 | |
16 | -use eBayEnterprise\RetailOrderManagement\Payload\Order\IOrderDestinationIterable; |
|
16 | +use Psr\Log\LoggerInterface; |
|
17 | 17 | use eBayEnterprise\RetailOrderManagement\Payload\Order\IEmailAddressDestination; |
18 | 18 | use eBayEnterprise\RetailOrderManagement\Payload\Order\IOrderCreateRequest; |
19 | +use eBayEnterprise\RetailOrderManagement\Payload\Order\IOrderDestinationIterable; |
|
19 | 20 | use eBayEnterprise\RetailOrderManagement\Payload\Order\IOrderItemReference; |
20 | 21 | use eBayEnterprise\RetailOrderManagement\Payload\Order\IOrderItemReferenceIterable; |
22 | +use eBayEnterprise\RetailOrderManagement\Payload\Order\IPriceGroup; |
|
21 | 23 | use eBayEnterprise\RetailOrderManagement\Payload\Order\IShipGroup; |
22 | 24 | use eBayEnterprise\RetailOrderManagement\Payload\Order\IShipGroupIterable; |
23 | -use eBayEnterprise\RetailOrderManagement\Payload\Order\IPriceGroup; |
|
24 | -use Psr\Log\LoggerInterface; |
|
25 | 25 | |
26 | 26 | class EbayEnterprise_Order_Helper_Giftcard |
27 | 27 | { |
@@ -309,7 +309,7 @@ discard block |
||
309 | 309 | protected function getVirtualGiftCardItemReferences(IOrderItemReferenceIterable $itemRefs, array $virtualGiftCards) |
310 | 310 | { |
311 | 311 | return $this->mapItemReferenceToItem( |
312 | - function (IOrderItemReference $itemRef) { |
|
312 | + function(IOrderItemReference $itemRef) { |
|
313 | 313 | return $itemRef; |
314 | 314 | }, |
315 | 315 | $itemRefs, |
@@ -328,7 +328,7 @@ discard block |
||
328 | 328 | protected function createItemReferencePairs(array $itemRefs, array $virtualGiftCards) |
329 | 329 | { |
330 | 330 | return $this->mapItemReferenceToItem( |
331 | - function (IOrderItemReference $itemRef, Mage_Sales_Model_Order_Item $item) { |
|
331 | + function(IOrderItemReference $itemRef, Mage_Sales_Model_Order_Item $item) { |
|
332 | 332 | return $this->createItemReferencePair($item, $itemRef); |
333 | 333 | }, |
334 | 334 | $itemRefs, |
@@ -344,7 +344,7 @@ |
||
344 | 344 | * @param Mage_Sales_Model_Order_Item[] |
345 | 345 | * @return array |
346 | 346 | */ |
347 | - protected function mapItemReferenceToItem(Callable $cb, $itemRefs, array $virtualGiftCards) |
|
347 | + protected function mapItemReferenceToItem(callable $cb, $itemRefs, array $virtualGiftCards) |
|
348 | 348 | { |
349 | 349 | $itemIndex = $this->createItemIndex($virtualGiftCards, 'line_number'); |
350 | 350 | $res = []; |
@@ -1,17 +1,17 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
4 | - * |
|
5 | - * NOTICE OF LICENSE |
|
6 | - * |
|
7 | - * This source file is subject to the Open Software License (OSL 3.0) |
|
8 | - * that is bundled with this package in the file LICENSE.md. |
|
9 | - * It is also available through the world-wide-web at this URL: |
|
10 | - * http://opensource.org/licenses/osl-3.0.php |
|
11 | - * |
|
12 | - * @copyright Copyright (c) 2013-2014 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
13 | - * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
14 | - */ |
|
3 | + * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
4 | + * |
|
5 | + * NOTICE OF LICENSE |
|
6 | + * |
|
7 | + * This source file is subject to the Open Software License (OSL 3.0) |
|
8 | + * that is bundled with this package in the file LICENSE.md. |
|
9 | + * It is also available through the world-wide-web at this URL: |
|
10 | + * http://opensource.org/licenses/osl-3.0.php |
|
11 | + * |
|
12 | + * @copyright Copyright (c) 2013-2014 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
13 | + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
14 | + */ |
|
15 | 15 | |
16 | 16 | class EbayEnterprise_Tax_Test_Model_Total_Quote_Address_TaxTest extends EcomDev_PHPUnit_Test_Case |
17 | 17 | { |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | * @param array |
51 | 51 | * @param string $field Valid array key |
52 | 52 | * @param mixed |
53 | - * @return mixed |
|
53 | + * @return EbayEnterprise_Eb2cCore_Model_Config_Registry |
|
54 | 54 | */ |
55 | 55 | protected function nullCoalesce(array $arr, $field, $default) |
56 | 56 | { |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | * |
73 | 73 | * @param IPayload |
74 | 74 | * @param string |
75 | - * @return mixed |
|
75 | + * @return string |
|
76 | 76 | */ |
77 | 77 | protected function _getStringValue(IPayload $payload, $getter) |
78 | 78 | { |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | * |
98 | 98 | * @param IPayload |
99 | 99 | * @param string |
100 | - * @return mixed |
|
100 | + * @return double |
|
101 | 101 | */ |
102 | 102 | protected function _getFloatValue(IPayload $payload, $getter) |
103 | 103 | { |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | * |
110 | 110 | * @param IPayload |
111 | 111 | * @param string |
112 | - * @return mixed |
|
112 | + * @return boolean |
|
113 | 113 | */ |
114 | 114 | protected function _getBooleanValue(IPayload $payload, $getter) |
115 | 115 | { |
@@ -1,17 +1,17 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
4 | - * |
|
5 | - * NOTICE OF LICENSE |
|
6 | - * |
|
7 | - * This source file is subject to the Open Software License (OSL 3.0) |
|
8 | - * that is bundled with this package in the file LICENSE.md. |
|
9 | - * It is also available through the world-wide-web at this URL: |
|
10 | - * http://opensource.org/licenses/osl-3.0.php |
|
11 | - * |
|
12 | - * @copyright Copyright (c) 2013-2014 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
13 | - * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
14 | - */ |
|
3 | + * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
4 | + * |
|
5 | + * NOTICE OF LICENSE |
|
6 | + * |
|
7 | + * This source file is subject to the Open Software License (OSL 3.0) |
|
8 | + * that is bundled with this package in the file LICENSE.md. |
|
9 | + * It is also available through the world-wide-web at this URL: |
|
10 | + * http://opensource.org/licenses/osl-3.0.php |
|
11 | + * |
|
12 | + * @copyright Copyright (c) 2013-2014 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
13 | + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
14 | + */ |
|
15 | 15 | |
16 | 16 | class EbayEnterprise_Tax_Test_Model_Total_Quote_Address_TaxTest extends EcomDev_PHPUnit_Test_Case |
17 | 17 | { |
@@ -25,7 +25,7 @@ |
||
25 | 25 | * @param array $initParams May have this key: |
26 | 26 | * - 'multi_shipping' => EbayEnterprise_PayPal_Model_Multishipping |
27 | 27 | */ |
28 | - public function __construct(array $initParams=[]) |
|
28 | + public function __construct(array $initParams = []) |
|
29 | 29 | { |
30 | 30 | list($this->multiShipping) = $this->checkTypes( |
31 | 31 | $this->nullCoalesce($initParams, 'multi_shipping', Mage::getModel('ebayenterprise_paypal/multishipping')) |
@@ -52,6 +52,7 @@ discard block |
||
52 | 52 | * |
53 | 53 | * @param IOrderSummary |
54 | 54 | * @param string |
55 | + * @param string $getter |
|
55 | 56 | * @return string | null |
56 | 57 | */ |
57 | 58 | public function getDatetimeValue(IOrderSummary $summary, $getter) |
@@ -65,7 +66,8 @@ discard block |
||
65 | 66 | * |
66 | 67 | * @param IOrderSummary |
67 | 68 | * @param string |
68 | - * @return mixed |
|
69 | + * @param string $getter |
|
70 | + * @return double |
|
69 | 71 | */ |
70 | 72 | public function getFloatValue(IOrderSummary $summary, $getter) |
71 | 73 | { |
@@ -77,7 +79,8 @@ discard block |
||
77 | 79 | * |
78 | 80 | * @param IOrderSummary |
79 | 81 | * @param string |
80 | - * @return mixed |
|
82 | + * @param string $getter |
|
83 | + * @return boolean |
|
81 | 84 | */ |
82 | 85 | public function getBooleanValue(IOrderSummary $summary, $getter) |
83 | 86 | { |
@@ -1,17 +1,17 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
4 | - * |
|
5 | - * NOTICE OF LICENSE |
|
6 | - * |
|
7 | - * This source file is subject to the Open Software License (OSL 3.0) |
|
8 | - * that is bundled with this package in the file LICENSE.md. |
|
9 | - * It is also available through the world-wide-web at this URL: |
|
10 | - * http://opensource.org/licenses/osl-3.0.php |
|
11 | - * |
|
12 | - * @copyright Copyright (c) 2013-2014 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
13 | - * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
14 | - */ |
|
3 | + * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
4 | + * |
|
5 | + * NOTICE OF LICENSE |
|
6 | + * |
|
7 | + * This source file is subject to the Open Software License (OSL 3.0) |
|
8 | + * that is bundled with this package in the file LICENSE.md. |
|
9 | + * It is also available through the world-wide-web at this URL: |
|
10 | + * http://opensource.org/licenses/osl-3.0.php |
|
11 | + * |
|
12 | + * @copyright Copyright (c) 2013-2014 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
13 | + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
14 | + */ |
|
15 | 15 | |
16 | 16 | class EbayEnterprise_Tax_Test_Model_Total_Quote_Address_TaxTest extends EcomDev_PHPUnit_Test_Case |
17 | 17 | { |
@@ -63,7 +63,7 @@ |
||
63 | 63 | * @param array |
64 | 64 | * @param string $field Valid array key |
65 | 65 | * @param mixed |
66 | - * @return mixed |
|
66 | + * @return EbayEnterprise_Order_Helper_Data |
|
67 | 67 | */ |
68 | 68 | protected function _nullCoalesce(array $arr, $field, $default) |
69 | 69 | { |
@@ -13,8 +13,8 @@ |
||
13 | 13 | * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
14 | 14 | */ |
15 | 15 | |
16 | -use eBayEnterprise\RetailOrderManagement\Payload\Order\IOrderCancelRequest; |
|
17 | 16 | use eBayEnterprise\RetailOrderManagement\Api\IBidirectionalApi; |
17 | +use eBayEnterprise\RetailOrderManagement\Payload\Order\IOrderCancelRequest; |
|
18 | 18 | |
19 | 19 | class EbayEnterprise_Order_Model_Cancel_Build_Request implements EbayEnterprise_Order_Model_Cancel_Build_IRequest |
20 | 20 | { |
@@ -124,6 +124,6 @@ |
||
124 | 124 | protected function _getReasonDescription() |
125 | 125 | { |
126 | 126 | $reasonCode = $this->_order->getCancelReasonCode(); |
127 | - return $reasonCode? $this->_orderHelper->getCancelReasonDescription($reasonCode) : null; |
|
127 | + return $reasonCode ? $this->_orderHelper->getCancelReasonDescription($reasonCode) : null; |
|
128 | 128 | } |
129 | 129 | } |
@@ -1,17 +1,17 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
4 | - * |
|
5 | - * NOTICE OF LICENSE |
|
6 | - * |
|
7 | - * This source file is subject to the Open Software License (OSL 3.0) |
|
8 | - * that is bundled with this package in the file LICENSE.md. |
|
9 | - * It is also available through the world-wide-web at this URL: |
|
10 | - * http://opensource.org/licenses/osl-3.0.php |
|
11 | - * |
|
12 | - * @copyright Copyright (c) 2013-2014 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
13 | - * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
14 | - */ |
|
3 | + * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
4 | + * |
|
5 | + * NOTICE OF LICENSE |
|
6 | + * |
|
7 | + * This source file is subject to the Open Software License (OSL 3.0) |
|
8 | + * that is bundled with this package in the file LICENSE.md. |
|
9 | + * It is also available through the world-wide-web at this URL: |
|
10 | + * http://opensource.org/licenses/osl-3.0.php |
|
11 | + * |
|
12 | + * @copyright Copyright (c) 2013-2014 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
13 | + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
14 | + */ |
|
15 | 15 | |
16 | 16 | class EbayEnterprise_Tax_Test_Model_Total_Quote_Address_TaxTest extends EcomDev_PHPUnit_Test_Case |
17 | 17 | { |
@@ -165,6 +165,7 @@ discard block |
||
165 | 165 | * @param string |
166 | 166 | * @param array |
167 | 167 | * @param mixed |
168 | + * @param string $key |
|
168 | 169 | * @return mixed |
169 | 170 | */ |
170 | 171 | protected function _nullCoalesce($key, array $arr, $default) |
@@ -343,7 +344,7 @@ discard block |
||
343 | 344 | * so the SDK can use it. |
344 | 345 | * |
345 | 346 | * @param Mage_Customer_Model_Address_Abstract |
346 | - * @return IMailingAddress |
|
347 | + * @return IPhysicalAddress |
|
347 | 348 | */ |
348 | 349 | protected function _getRomBillingAddress(Mage_Customer_Model_Address_Abstract $address) |
349 | 350 | { |
@@ -683,7 +684,7 @@ discard block |
||
683 | 684 | * |
684 | 685 | * @param Mage_Customer_Model_Address_Abstract |
685 | 686 | * @param IOrderDestinationIterable Used to create the new email address destination payload |
686 | - * @return IMailingAddressDestination |
|
687 | + * @return IPhysicalAddress |
|
687 | 688 | */ |
688 | 689 | protected function _buildPhysicalDestination(Mage_Customer_Model_Address_Abstract $address, IOrderDestinationIterable $destinations) |
689 | 690 | { |
@@ -759,7 +760,7 @@ discard block |
||
759 | 760 | * convert a mage date string to a datetime. |
760 | 761 | * if $dateString is invalid, return false. |
761 | 762 | * @param string |
762 | - * @return DateTime|false |
|
763 | + * @return DateTime |
|
763 | 764 | */ |
764 | 765 | protected function _getAsDateTime($dateString) |
765 | 766 | { |
@@ -1,17 +1,17 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
4 | - * |
|
5 | - * NOTICE OF LICENSE |
|
6 | - * |
|
7 | - * This source file is subject to the Open Software License (OSL 3.0) |
|
8 | - * that is bundled with this package in the file LICENSE.md. |
|
9 | - * It is also available through the world-wide-web at this URL: |
|
10 | - * http://opensource.org/licenses/osl-3.0.php |
|
11 | - * |
|
12 | - * @copyright Copyright (c) 2013-2014 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
13 | - * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
14 | - */ |
|
3 | + * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
4 | + * |
|
5 | + * NOTICE OF LICENSE |
|
6 | + * |
|
7 | + * This source file is subject to the Open Software License (OSL 3.0) |
|
8 | + * that is bundled with this package in the file LICENSE.md. |
|
9 | + * It is also available through the world-wide-web at this URL: |
|
10 | + * http://opensource.org/licenses/osl-3.0.php |
|
11 | + * |
|
12 | + * @copyright Copyright (c) 2013-2014 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
13 | + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
14 | + */ |
|
15 | 15 | |
16 | 16 | class EbayEnterprise_Tax_Test_Model_Total_Quote_Address_TaxTest extends EcomDev_PHPUnit_Test_Case |
17 | 17 | { |
@@ -57,6 +57,7 @@ discard block |
||
57 | 57 | * @param string |
58 | 58 | * @param array |
59 | 59 | * @param mixed |
60 | + * @param string $key |
|
60 | 61 | * @return mixed |
61 | 62 | */ |
62 | 63 | protected function nullCoalesce($key, array $ar, $default) |
@@ -72,6 +73,7 @@ discard block |
||
72 | 73 | * @param int |
73 | 74 | * @param string |
74 | 75 | * @param bool |
76 | + * @param integer $lineNumber |
|
75 | 77 | * @return IOrderItem |
76 | 78 | */ |
77 | 79 | public function buildOrderItem( |
@@ -226,6 +228,7 @@ discard block |
||
226 | 228 | * attribute |
227 | 229 | * @param string |
228 | 230 | * @param Mage_Sales_Model_Order_Item |
231 | + * @param string $attributeCode |
|
229 | 232 | * @return array |
230 | 233 | */ |
231 | 234 | protected function getOptionInfo($attributeCode, Mage_Sales_Model_Order_Item $item) |
@@ -1,17 +1,17 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
4 | - * |
|
5 | - * NOTICE OF LICENSE |
|
6 | - * |
|
7 | - * This source file is subject to the Open Software License (OSL 3.0) |
|
8 | - * that is bundled with this package in the file LICENSE.md. |
|
9 | - * It is also available through the world-wide-web at this URL: |
|
10 | - * http://opensource.org/licenses/osl-3.0.php |
|
11 | - * |
|
12 | - * @copyright Copyright (c) 2013-2014 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
13 | - * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
14 | - */ |
|
3 | + * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
4 | + * |
|
5 | + * NOTICE OF LICENSE |
|
6 | + * |
|
7 | + * This source file is subject to the Open Software License (OSL 3.0) |
|
8 | + * that is bundled with this package in the file LICENSE.md. |
|
9 | + * It is also available through the world-wide-web at this URL: |
|
10 | + * http://opensource.org/licenses/osl-3.0.php |
|
11 | + * |
|
12 | + * @copyright Copyright (c) 2013-2014 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
13 | + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
14 | + */ |
|
15 | 15 | |
16 | 16 | class EbayEnterprise_Tax_Test_Model_Total_Quote_Address_TaxTest extends EcomDev_PHPUnit_Test_Case |
17 | 17 | { |
@@ -53,6 +53,11 @@ discard block |
||
53 | 53 | return func_get_args(); |
54 | 54 | } |
55 | 55 | |
56 | + /** |
|
57 | + * @param string $key |
|
58 | + * |
|
59 | + * @return EbayEnterprise_Order_Model_Create_Relationships_IStorage |
|
60 | + */ |
|
56 | 61 | protected function nullCoalesce(array $arr, $key, $default) |
57 | 62 | { |
58 | 63 | return isset($arr[$key]) ? $arr[$key] : $default; |
@@ -91,6 +96,7 @@ discard block |
||
91 | 96 | * |
92 | 97 | * @param Mage_Sales_Model_Order_Item |
93 | 98 | * @param bool |
99 | + * @param boolean $isParentItemPayload |
|
94 | 100 | */ |
95 | 101 | protected function addItemToRelationship(Mage_Sales_Model_Order_Item $keyItem, $isParentItemPayload) |
96 | 102 | { |
@@ -111,8 +111,7 @@ |
||
111 | 111 | */ |
112 | 112 | protected function getOrCreateItemRelationship(Mage_Sales_Model_Order_Item $keyItem) |
113 | 113 | { |
114 | - $relationship = $this->storage->getRelationshipPayload($keyItem) ?: |
|
115 | - $this->createRelationshipPayload($this->itemPayload); |
|
114 | + $relationship = $this->storage->getRelationshipPayload($keyItem) ?: $this->createRelationshipPayload($this->itemPayload); |
|
116 | 115 | $this->storage->addRelationship($keyItem, $relationship); |
117 | 116 | return $relationship; |
118 | 117 | } |
@@ -13,8 +13,8 @@ |
||
13 | 13 | * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
14 | 14 | */ |
15 | 15 | |
16 | -use eBayEnterprise\RetailOrderManagement\Payload\Order\IOrderItem; |
|
17 | 16 | use eBayEnterprise\RetailOrderManagement\Payload\Order\IItemRelationship; |
17 | +use eBayEnterprise\RetailOrderManagement\Payload\Order\IOrderItem; |
|
18 | 18 | |
19 | 19 | /** |
20 | 20 | * keeps track of relationship payloads |
@@ -1,17 +1,17 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
4 | - * |
|
5 | - * NOTICE OF LICENSE |
|
6 | - * |
|
7 | - * This source file is subject to the Open Software License (OSL 3.0) |
|
8 | - * that is bundled with this package in the file LICENSE.md. |
|
9 | - * It is also available through the world-wide-web at this URL: |
|
10 | - * http://opensource.org/licenses/osl-3.0.php |
|
11 | - * |
|
12 | - * @copyright Copyright (c) 2013-2014 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
13 | - * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
14 | - */ |
|
3 | + * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
4 | + * |
|
5 | + * NOTICE OF LICENSE |
|
6 | + * |
|
7 | + * This source file is subject to the Open Software License (OSL 3.0) |
|
8 | + * that is bundled with this package in the file LICENSE.md. |
|
9 | + * It is also available through the world-wide-web at this URL: |
|
10 | + * http://opensource.org/licenses/osl-3.0.php |
|
11 | + * |
|
12 | + * @copyright Copyright (c) 2013-2014 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
13 | + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
14 | + */ |
|
15 | 15 | |
16 | 16 | class EbayEnterprise_Tax_Test_Model_Total_Quote_Address_TaxTest extends EcomDev_PHPUnit_Test_Case |
17 | 17 | { |
@@ -34,6 +34,7 @@ |
||
34 | 34 | * |
35 | 35 | * @param Mage_Sales_Model_Order_Item |
36 | 36 | * @param IItemRelationship |
37 | + * @return EbayEnterprise_Order_Model_Create_Relationships_Storage |
|
37 | 38 | */ |
38 | 39 | public function addRelationship( |
39 | 40 | Mage_Sales_Model_Order_Item $item, |
@@ -1,17 +1,17 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
4 | - * |
|
5 | - * NOTICE OF LICENSE |
|
6 | - * |
|
7 | - * This source file is subject to the Open Software License (OSL 3.0) |
|
8 | - * that is bundled with this package in the file LICENSE.md. |
|
9 | - * It is also available through the world-wide-web at this URL: |
|
10 | - * http://opensource.org/licenses/osl-3.0.php |
|
11 | - * |
|
12 | - * @copyright Copyright (c) 2013-2014 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
13 | - * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
14 | - */ |
|
3 | + * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
4 | + * |
|
5 | + * NOTICE OF LICENSE |
|
6 | + * |
|
7 | + * This source file is subject to the Open Software License (OSL 3.0) |
|
8 | + * that is bundled with this package in the file LICENSE.md. |
|
9 | + * It is also available through the world-wide-web at this URL: |
|
10 | + * http://opensource.org/licenses/osl-3.0.php |
|
11 | + * |
|
12 | + * @copyright Copyright (c) 2013-2014 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
13 | + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
14 | + */ |
|
15 | 15 | |
16 | 16 | class EbayEnterprise_Tax_Test_Model_Total_Quote_Address_TaxTest extends EcomDev_PHPUnit_Test_Case |
17 | 17 | { |
@@ -37,6 +37,12 @@ |
||
37 | 37 | return func_get_args(); |
38 | 38 | } |
39 | 39 | |
40 | + /** |
|
41 | + * @param string $key |
|
42 | + * @param SplObjectStorage $default |
|
43 | + * |
|
44 | + * @return SplObjectStorage |
|
45 | + */ |
|
40 | 46 | protected function nullCoalesce(array $arr, $key, $default) |
41 | 47 | { |
42 | 48 | return isset($arr[$key]) ? $arr[$key] : $default; |
@@ -1,17 +1,17 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
4 | - * |
|
5 | - * NOTICE OF LICENSE |
|
6 | - * |
|
7 | - * This source file is subject to the Open Software License (OSL 3.0) |
|
8 | - * that is bundled with this package in the file LICENSE.md. |
|
9 | - * It is also available through the world-wide-web at this URL: |
|
10 | - * http://opensource.org/licenses/osl-3.0.php |
|
11 | - * |
|
12 | - * @copyright Copyright (c) 2013-2014 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
13 | - * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
14 | - */ |
|
3 | + * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
4 | + * |
|
5 | + * NOTICE OF LICENSE |
|
6 | + * |
|
7 | + * This source file is subject to the Open Software License (OSL 3.0) |
|
8 | + * that is bundled with this package in the file LICENSE.md. |
|
9 | + * It is also available through the world-wide-web at this URL: |
|
10 | + * http://opensource.org/licenses/osl-3.0.php |
|
11 | + * |
|
12 | + * @copyright Copyright (c) 2013-2014 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
13 | + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
14 | + */ |
|
15 | 15 | |
16 | 16 | class EbayEnterprise_Tax_Test_Model_Total_Quote_Address_TaxTest extends EcomDev_PHPUnit_Test_Case |
17 | 17 | { |