@@ -37,6 +37,9 @@ |
||
| 37 | 37 | $this->maps = $this->loadArrayFromFile(__DIR__.'/map/restful.map.php'); |
| 38 | 38 | } |
| 39 | 39 | |
| 40 | + /** |
|
| 41 | + * @param string $decoratorName |
|
| 42 | + */ |
|
| 40 | 43 | public function factoryDecorator(Order $order, $decoratorName) |
| 41 | 44 | { |
| 42 | 45 | $className = __NAMESPACE__.'\\Decorator\\'.$decoratorName; |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | /** |
| 39 | - * @return Gpupo\Common\Entity\CollectionAbstract|null |
|
| 39 | + * @return null|EntityInterface |
|
| 40 | 40 | */ |
| 41 | 41 | public function findById($itemId) |
| 42 | 42 | { |
@@ -56,6 +56,9 @@ discard block |
||
| 56 | 56 | return $this->hydrate($sku); |
| 57 | 57 | } |
| 58 | 58 | |
| 59 | + /** |
|
| 60 | + * @param string $type |
|
| 61 | + */ |
|
| 59 | 62 | protected function getDetail(EntityInterface $sku, $type) |
| 60 | 63 | { |
| 61 | 64 | $response = $this->perform($this->factoryMap('get'.$type, ['sku' => $sku->getId()])); |
@@ -102,6 +105,9 @@ discard block |
||
| 102 | 105 | ]), $entity->toJson()); |
| 103 | 106 | } |
| 104 | 107 | |
| 108 | + /** |
|
| 109 | + * @param string $type |
|
| 110 | + */ |
|
| 105 | 111 | public function saveDetail(Item $sku, $type) |
| 106 | 112 | { |
| 107 | 113 | $json = $sku->toJson($type); |
@@ -44,6 +44,9 @@ discard block |
||
| 44 | 44 | return $datetime->format('c'); |
| 45 | 45 | } |
| 46 | 46 | |
| 47 | + /** |
|
| 48 | + * @param string $key |
|
| 49 | + */ |
|
| 47 | 50 | protected function dateGet($key) |
| 48 | 51 | { |
| 49 | 52 | $value = $this->get($key); |
@@ -55,6 +58,9 @@ discard block |
||
| 55 | 58 | } |
| 56 | 59 | } |
| 57 | 60 | |
| 61 | + /** |
|
| 62 | + * @param string $move |
|
| 63 | + */ |
|
| 58 | 64 | protected function dateMove($move) |
| 59 | 65 | { |
| 60 | 66 | $date = new DateTime(); |