Completed
Pull Request — master (#5)
by Eric
03:07
created
src/Clients/AmazonPriceClient.php 2 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -88,6 +88,9 @@  discard block
 block discarded – undo
88 88
         return $this->collection;
89 89
     }
90 90
 
91
+    /**
92
+     * @param string $merchant_id
93
+     */
91 94
     public function populatePriceData($offer, $item, $merchant_id)
92 95
     {
93 96
         // New price model object
@@ -113,6 +116,9 @@  discard block
 block discarded – undo
113 116
         return $price;
114 117
     }
115 118
 
119
+    /**
120
+     * @param string $key
121
+     */
116 122
     public function addParam($key, $value)
117 123
     {
118 124
         $this->search->{'set'.$key}($value);
Please login to merge, or discard this patch.
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@
 block discarded – undo
1 1
 <?php namespace Packback\Prices\Clients;
2 2
 
3
-use Packback\Prices\PriceClient;
3
+use ApaiIO\ApaiIO;
4 4
 use ApaiIO\Configuration\GenericConfiguration;
5 5
 use ApaiIO\Operations\Search;
6
-use ApaiIO\ApaiIO;
6
+use Packback\Prices\PriceClient;
7 7
 
8 8
 class AmazonPriceClient extends PriceClient
9 9
 {
Please login to merge, or discard this patch.
src/PriceClient.php 2 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -32,6 +32,9 @@  discard block
 block discarded – undo
32 32
 
33 33
     abstract public function addPricesToCollection($response);
34 34
 
35
+    /**
36
+     * @param string $key
37
+     */
35 38
     public function addParam($key, $value)
36 39
     {
37 40
         $this->query[$key] = $value;
@@ -69,6 +72,9 @@  discard block
 block discarded – undo
69 72
         return new PriceDto();
70 73
     }
71 74
 
75
+    /**
76
+     * @param PriceDto $price
77
+     */
72 78
     public function addPriceToCollection($price)
73 79
     {
74 80
         $this->collection[] = $price;
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php namespace Packback\Prices;
2 2
 
3
-use Packback\Prices\PriceDto;
4 3
 use GuzzleHttp\Client as GuzzleClient;
4
+use Packback\Prices\PriceDto;
5 5
 
6 6
 abstract class PriceClient
7 7
 {
Please login to merge, or discard this patch.