Completed
Push — master ( 5b5661...c24540 )
by Gilmar
43:33 queued 18:42
created
src/Entity/Product/Sku/Manager.php 1 patch
Doc Comments   +7 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
     }
44 44
 
45 45
     /**
46
-     * @return Gpupo\Common\Entity\CollectionAbstract|null
46
+     * @return null|EntityInterface
47 47
      */
48 48
     public function findSkuById($itemId)
49 49
     {
@@ -63,6 +63,9 @@  discard block
 block discarded – undo
63 63
         return $this->hydrate($sku);
64 64
     }
65 65
 
66
+    /**
67
+     * @param string $type
68
+     */
66 69
     protected function getDetail(EntityInterface $sku, $type)
67 70
     {
68 71
         $response = $this->perform($this->factoryMap('get'.$type, ['sku' => $sku->getId()]));
@@ -82,6 +85,9 @@  discard block
 block discarded – undo
82 85
         return $o;
83 86
     }
84 87
 
88
+    /**
89
+     * @param string $type
90
+     */
85 91
     public function saveDetail(Item $sku, $type)
86 92
     {
87 93
         $json = $sku->toJson($type);
Please login to merge, or discard this patch.
src/Entity/AbstractManager.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -27,6 +27,9 @@
 block discarded – undo
27 27
         ];
28 28
     }
29 29
 
30
+    /**
31
+     * @param string $operation
32
+     */
30 33
     public function factoryMap($operation, array $parameters = null)
31 34
     {
32 35
         return parent::factoryMap($operation, array_merge($this->fetchDefaultParameters(), (array) $parameters));
Please login to merge, or discard this patch.
src/Entity/Product/Sku/PriceSchedule.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -57,11 +57,17 @@
 block discarded – undo
57 57
         return $datetime->format('c');
58 58
     }
59 59
 
60
+    /**
61
+     * @param string $string
62
+     */
60 63
     public function setDateInit($string)
61 64
     {
62 65
         return parent::setDateInit($this->dateFormat($string));
63 66
     }
64 67
 
68
+    /**
69
+     * @param string $string
70
+     */
65 71
     public function setDateEnd($string)
66 72
     {
67 73
         return parent::setDateEnd($this->dateFormat($string));
Please login to merge, or discard this patch.