@@ -43,7 +43,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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); |
@@ -34,6 +34,9 @@ |
||
| 34 | 34 | $this->maps = include 'map.config.php'; |
| 35 | 35 | } |
| 36 | 36 | |
| 37 | + /** |
|
| 38 | + * @param string $decoratorName |
|
| 39 | + */ |
|
| 37 | 40 | public function factoryDecorator(Order $order, $decoratorName) |
| 38 | 41 | { |
| 39 | 42 | $className = __NAMESPACE__.'\\Decorator\\'.$decoratorName; |
@@ -27,6 +27,9 @@ |
||
| 27 | 27 | return $datetime->format('c'); |
| 28 | 28 | } |
| 29 | 29 | |
| 30 | + /** |
|
| 31 | + * @param string $key |
|
| 32 | + */ |
|
| 30 | 33 | protected function dateGet($key) |
| 31 | 34 | { |
| 32 | 35 | $value = $this->get($key); |