Completed
Push — develop ( 36492c...3d5a51 )
by Aleksey
03:25
created
src/SpeckCatalog/Controller/ProductController.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -18,6 +18,9 @@  discard block
 block discarded – undo
18 18
         'product_image' => 'speckcatalog_product_image_service',
19 19
     );
20 20
 
21
+    /**
22
+     * @param string $name
23
+     */
21 24
     public function getService($name)
22 25
     {
23 26
         if (!array_key_exists($name, $this->services)) {
@@ -59,6 +62,9 @@  discard block
 block discarded – undo
59 62
         return new ViewModel(array('images' => $images));
60 63
     }
61 64
 
65
+    /**
66
+     * @param string $helperName
67
+     */
62 68
     public function getViewHelper($helperName)
63 69
     {
64 70
         return $this->getServiceLocator()->get('viewhelpermanager')->get($helperName);
Please login to merge, or discard this patch.
src/SpeckCatalog/Mapper/Choice.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -27,6 +27,9 @@
 block discarded – undo
27 27
         return $this->selectManyModels($select);
28 28
     }
29 29
 
30
+    /**
31
+     * @param string $tableName
32
+     */
30 33
     public function insert($choice, $tableName = null, HydratorInterface $hydrator = null)
31 34
     {
32 35
         $choiceId = parent::insert($choice, $tableName, $hydrator);
Please login to merge, or discard this patch.
src/SpeckCatalog/Model/Choice.php 2 patches
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
     }
24 24
 
25 25
     /**
26
-     * @param $choiceId
26
+     * @param integer $choiceId
27 27
      * @return self
28 28
      */
29 29
     public function setChoiceId($choiceId)
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
     }
96 96
 
97 97
     /**
98
-     * @param $priceOverrideFixed
98
+     * @param integer|null $priceOverrideFixed
99 99
      * @return self
100 100
      */
101 101
     public function setPriceOverrideFixed($priceOverrideFixed)
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
     }
114 114
 
115 115
     /**
116
-     * @param $priceDiscountFixed
116
+     * @param integer|null $priceDiscountFixed
117 117
      * @return self
118 118
      */
119 119
     public function setPriceDiscountFixed($priceDiscountFixed)
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
     }
132 132
 
133 133
     /**
134
-     * @param $priceDiscountPercent
134
+     * @param integer|null $priceDiscountPercent
135 135
      * @return self
136 136
      */
137 137
     public function setPriceDiscountPercent($priceDiscountPercent)
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
     }
142 142
 
143 143
     /**
144
-     * @return priceNoCharge
144
+     * @return integer
145 145
      */
146 146
     public function getPriceNoCharge()
147 147
     {
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
     }
150 150
 
151 151
     /**
152
-     * @param $priceNoCharge
152
+     * @param integer $priceNoCharge
153 153
      * @return self
154 154
      */
155 155
     public function setPriceNoCharge($priceNoCharge)
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
     }
160 160
 
161 161
     /**
162
-     * @return sortWeight
162
+     * @return integer
163 163
      */
164 164
     public function getSortWeight()
165 165
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -154,7 +154,7 @@
 block discarded – undo
154 154
      */
155 155
     public function setPriceNoCharge($priceNoCharge)
156 156
     {
157
-        $this->priceNoCharge = (bool)$priceNoCharge;
157
+        $this->priceNoCharge = (bool) $priceNoCharge;
158 158
         return $this;
159 159
     }
160 160
 
Please login to merge, or discard this patch.
src/SpeckCatalog/Model/Product/Relational.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
     }
265 265
 
266 266
     /**
267
-     * @return manufacturer
267
+     * @return \SpeckContact\Entity\Company|null
268 268
      */
269 269
     public function getManufacturer()
270 270
     {
@@ -292,7 +292,7 @@  discard block
 block discarded – undo
292 292
     }
293 293
 
294 294
     /**
295
-     * @return parent
295
+     * @return AbstractModel
296 296
      */
297 297
     public function getParent()
298 298
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
         } elseif ($type === 'product') {
44 44
             $product->setProductTypeId(2);
45 45
         }
46
-        switch($this->getProductTypeId()) {
46
+        switch ($this->getProductTypeId()) {
47 47
             case 1:
48 48
                 return 'shell';
49 49
                 break;
Please login to merge, or discard this patch.
src/SpeckCatalog/Model/ProductUom/Relational.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     }
63 63
 
64 64
     /**
65
-     * @return parent
65
+     * @return AbstractModel
66 66
      */
67 67
     public function getParent()
68 68
     {
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
     }
84 84
 
85 85
     /**
86
-     * @return enabled
86
+     * @return integer
87 87
      */
88 88
     public function getEnabled()
89 89
     {
Please login to merge, or discard this patch.
src/SpeckCatalog/Model/Spec/Relational.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
     protected $parent;
11 11
 
12 12
     /**
13
-     * @return parent
13
+     * @return AbstractModel
14 14
      */
15 15
     public function getParent()
16 16
     {
Please login to merge, or discard this patch.
src/SpeckCatalog/Service/FormService.php 1 patch
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -10,6 +10,10 @@  discard block
 block discarded – undo
10 10
 {
11 11
     protected $serviceLocator;
12 12
 
13
+    /**
14
+     * @param string $name
15
+     * @param \SpeckCatalog\Model\Product $model
16
+     */
13 17
     public function getForm($name = null, $model = null, $data = null)
14 18
     {
15 19
         $form = $this->formFromServiceManager($name);
@@ -38,6 +42,10 @@  discard block
 block discarded – undo
38 42
         return $this->getServiceLocator()->get($filterName);
39 43
     }
40 44
 
45
+    /**
46
+     * @param string $name
47
+     * @param \SpeckCatalog\Model\Product $model
48
+     */
41 49
     public function getKeyFields($name, $model = null, $parentKeyFields = false)
42 50
     {
43 51
         $form = $this->formFromServiceManager($name);
Please login to merge, or discard this patch.
src/SpeckCatalog/Service/FormServiceAwareInterface.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -15,6 +15,7 @@
 block discarded – undo
15 15
      * Set formService.
16 16
      *
17 17
      * @param formService the value to set.
18
+     * @return \SpeckCatalog\View\Helper\Form
18 19
      */
19 20
     public function setFormService($formService);
20 21
 }
Please login to merge, or discard this patch.
src/SpeckCatalog/Service/Option.php 1 patch
Doc Comments   +7 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,6 +34,9 @@  discard block
 block discarded – undo
34 34
         return $options;
35 35
     }
36 36
 
37
+    /**
38
+     * @param integer $productId
39
+     */
37 40
     public function getBuildersByProductId($productId)
38 41
     {
39 42
         $choices = $this->getEntityMapper()->getBuildersByProductId($productId);
@@ -130,6 +133,9 @@  discard block
 block discarded – undo
130 133
         return true; //choice was found, and then deleted successfully
131 134
     }
132 135
 
136
+    /**
137
+     * @param integer $optionId
138
+     */
133 139
     public function sortChoices($optionId, array $order = array())
134 140
     {
135 141
         return $this->getEntityMapper()->sortChoices($optionId, $order);
@@ -189,7 +195,7 @@  discard block
 block discarded – undo
189 195
     }
190 196
 
191 197
     /**
192
-     * @param $productService
198
+     * @param Product $productService
193 199
      * @return self
194 200
      */
195 201
     public function setProductService($productService)
Please login to merge, or discard this patch.