@@ -34,6 +34,9 @@ discard block |
||
| 34 | 34 | } |
| 35 | 35 | } |
| 36 | 36 | |
| 37 | + /** |
|
| 38 | + * @param string $encrypted |
|
| 39 | + */ |
|
| 37 | 40 | public function handleDataFeed($encrypted, $decrypted){ |
| 38 | 41 | //handle encrypted & decrypted data |
| 39 | 42 | $orders = new SimpleXMLElement($decrypted); |
@@ -79,6 +82,10 @@ discard block |
||
| 79 | 82 | } |
| 80 | 83 | } |
| 81 | 84 | |
| 85 | + /** |
|
| 86 | + * @param SimpleXMLElement $orders |
|
| 87 | + * @param DataObject $transaction |
|
| 88 | + */ |
|
| 82 | 89 | public function parseOrderInfo($orders, $transaction) { |
| 83 | 90 | |
| 84 | 91 | foreach ($orders->transactions->transaction as $order) { |
@@ -95,6 +102,10 @@ discard block |
||
| 95 | 102 | } |
| 96 | 103 | } |
| 97 | 104 | |
| 105 | + /** |
|
| 106 | + * @param SimpleXMLElement $orders |
|
| 107 | + * @param DataObject $transaction |
|
| 108 | + */ |
|
| 98 | 109 | public function parseOrderCustomer($orders, $transaction) { |
| 99 | 110 | |
| 100 | 111 | foreach ($orders->transactions->transaction as $order) { |
@@ -133,6 +144,10 @@ discard block |
||
| 133 | 144 | } |
| 134 | 145 | } |
| 135 | 146 | |
| 147 | + /** |
|
| 148 | + * @param SimpleXMLElement $orders |
|
| 149 | + * @param DataObject $transaction |
|
| 150 | + */ |
|
| 136 | 151 | public function parseOrderDetails($orders, $transaction) { |
| 137 | 152 | |
| 138 | 153 | // remove previous OrderDetails so we don't end up with duplicates |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | private $product; |
| 21 | 21 | |
| 22 | 22 | /** |
| 23 | - * @param $siteConfig |
|
| 23 | + * @param SiteConfig|null $siteConfig |
|
| 24 | 24 | * @return $this |
| 25 | 25 | */ |
| 26 | 26 | public function setSiteConfig($siteConfig) |
@@ -30,10 +30,16 @@ |
||
| 30 | 30 | // protected static $cart_url = 'https://yourdomain.foxycart.com/cart'; |
| 31 | 31 | protected static $cart_url; |
| 32 | 32 | |
| 33 | + /** |
|
| 34 | + * @param string $storeName |
|
| 35 | + */ |
|
| 33 | 36 | public static function setCartURL($storeName = null){ |
| 34 | 37 | self::$cart_url = 'https://'.$storeName.'.faxycart.com/cart'; |
| 35 | 38 | } |
| 36 | 39 | |
| 40 | + /** |
|
| 41 | + * @param string $secret |
|
| 42 | + */ |
|
| 37 | 43 | public static function setSecret($secret = null){ |
| 38 | 44 | self::$secret = $secret; |
| 39 | 45 | } |
@@ -181,6 +181,9 @@ |
||
| 181 | 181 | return $result; |
| 182 | 182 | } |
| 183 | 183 | |
| 184 | + /** |
|
| 185 | + * @param string $oma |
|
| 186 | + */ |
|
| 184 | 187 | public static function getOptionModifierActionSymbol($oma, $returnWithOnlyPlusMinus = false) |
| 185 | 188 | { |
| 186 | 189 | switch ($oma) { |