@@ -191,9 +191,9 @@ |
||
| 191 | 191 | /** |
| 192 | 192 | * getPropertyAnnotation |
| 193 | 193 | * |
| 194 | - * @param mixed $reader |
|
| 195 | - * @param mixed $property |
|
| 196 | - * @param mixed $classname |
|
| 194 | + * @param FileCacheReader $reader |
|
| 195 | + * @param \ReflectionProperty $property |
|
| 196 | + * @param string $classname |
|
| 197 | 197 | * @access private |
| 198 | 198 | * @return void |
| 199 | 199 | */ |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | * @param array $data |
| 80 | 80 | * @param string $modelName |
| 81 | 81 | * @access public |
| 82 | - * @return array |
|
| 82 | + * @return HydraCollection |
|
| 83 | 83 | */ |
| 84 | 84 | public function hydrateList($data, $modelName) |
| 85 | 85 | { |
@@ -92,6 +92,9 @@ discard block |
||
| 92 | 92 | return new HydraCollection(); |
| 93 | 93 | } |
| 94 | 94 | |
| 95 | + /** |
|
| 96 | + * @param string $modelName |
|
| 97 | + */ |
|
| 95 | 98 | public function deserializeAll($data, $modelName) |
| 96 | 99 | { |
| 97 | 100 | $data['hydra:member'] = array_map( |
@@ -202,7 +202,7 @@ |
||
| 202 | 202 | * getMappingArray |
| 203 | 203 | * |
| 204 | 204 | * @access private |
| 205 | - * @return void |
|
| 205 | + * @return ClassMetadata[] |
|
| 206 | 206 | */ |
| 207 | 207 | private function getMappingArray() |
| 208 | 208 | { |
@@ -278,7 +278,6 @@ discard block |
||
| 278 | 278 | /** |
| 279 | 279 | * fetchFromCache |
| 280 | 280 | * |
| 281 | - * @param array $data |
|
| 282 | 281 | * @access private |
| 283 | 282 | * @return object |
| 284 | 283 | */ |
@@ -301,7 +300,6 @@ discard block |
||
| 301 | 300 | /** |
| 302 | 301 | * saveToCache |
| 303 | 302 | * |
| 304 | - * @param array $data |
|
| 305 | 303 | * @access private |
| 306 | 304 | * @return object |
| 307 | 305 | */ |
@@ -208,9 +208,9 @@ |
||
| 208 | 208 | /** |
| 209 | 209 | * logRequest |
| 210 | 210 | * |
| 211 | - * @param mixed $startTime |
|
| 212 | - * @param mixed $method |
|
| 213 | - * @param mixed $url |
|
| 211 | + * @param double|null $startTime |
|
| 212 | + * @param string $method |
|
| 213 | + * @param string $url |
|
| 214 | 214 | * @param mixed $parameters |
| 215 | 215 | * @param mixed $response |
| 216 | 216 | * @access private |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | |
| 51 | 51 | /** |
| 52 | 52 | * Constructor |
| 53 | - * @param ClientInterface $restClient |
|
| 53 | + * @param RestClient $restClient |
|
| 54 | 54 | */ |
| 55 | 55 | public function __construct(RestClient $restClient, Mapping $mapping, Serializer $serializer = null) |
| 56 | 56 | { |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | * |
| 71 | 71 | * @param CacheItemPoolInterface $cacheItemPool |
| 72 | 72 | * @access public |
| 73 | - * @return EntityRepository |
|
| 73 | + * @return SdkClient |
|
| 74 | 74 | */ |
| 75 | 75 | public function setCacheItemPool(CacheItemPoolInterface $cacheItemPool, $cachePrefix = '') |
| 76 | 76 | { |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | * getCacheItemPool |
| 85 | 85 | * |
| 86 | 86 | * @access public |
| 87 | - * @return CacheItemPool |
|
| 87 | + * @return CacheItemPoolInterface |
|
| 88 | 88 | */ |
| 89 | 89 | public function getCacheItemPool() |
| 90 | 90 | { |
@@ -176,7 +176,7 @@ discard block |
||
| 176 | 176 | * |
| 177 | 177 | * @param string $id |
| 178 | 178 | * @access public |
| 179 | - * @return object |
|
| 179 | + * @return \ProxyManager\Proxy\GhostObjectInterface |
|
| 180 | 180 | */ |
| 181 | 181 | public function createProxy($id) |
| 182 | 182 | { |
@@ -125,7 +125,6 @@ |
||
| 125 | 125 | /** |
| 126 | 126 | * testFindWithCache |
| 127 | 127 | * |
| 128 | - * @param mixed $method |
|
| 129 | 128 | * @access public |
| 130 | 129 | * @return void |
| 131 | 130 | */ |
@@ -670,7 +670,7 @@ discard block |
||
| 670 | 670 | * createNewCart |
| 671 | 671 | * |
| 672 | 672 | * @access private |
| 673 | - * @return AbstractModel |
|
| 673 | + * @return \Mapado\RestClientSdk\Tests\Model\Cart |
|
| 674 | 674 | */ |
| 675 | 675 | private function createNewCart() |
| 676 | 676 | { |
@@ -689,7 +689,7 @@ discard block |
||
| 689 | 689 | * createCart |
| 690 | 690 | * |
| 691 | 691 | * @access private |
| 692 | - * @return void |
|
| 692 | + * @return \Mapado\RestClientSdk\Tests\Model\Cart |
|
| 693 | 693 | */ |
| 694 | 694 | private function createCart() |
| 695 | 695 | { |
@@ -703,7 +703,7 @@ discard block |
||
| 703 | 703 | * createKnownCartItem |
| 704 | 704 | * |
| 705 | 705 | * @access private |
| 706 | - * @return AbstractModel |
|
| 706 | + * @return \Mapado\RestClientSdk\Tests\Model\CartItem |
|
| 707 | 707 | */ |
| 708 | 708 | private function createKnownCartItem() |
| 709 | 709 | { |
@@ -724,7 +724,7 @@ discard block |
||
| 724 | 724 | * createNewCartItem |
| 725 | 725 | * |
| 726 | 726 | * @access private |
| 727 | - * @return AbstractModel |
|
| 727 | + * @return \Mapado\RestClientSdk\Tests\Model\CartItem |
|
| 728 | 728 | */ |
| 729 | 729 | private function createNewCartItem($addKnownedProduct = true) |
| 730 | 730 | { |
@@ -747,7 +747,7 @@ discard block |
||
| 747 | 747 | * createNewProduct |
| 748 | 748 | * |
| 749 | 749 | * @access private |
| 750 | - * @return AbstractModel |
|
| 750 | + * @return \Mapado\RestClientSdk\Tests\Model\Product |
|
| 751 | 751 | */ |
| 752 | 752 | private function createNewProduct() |
| 753 | 753 | { |
@@ -764,7 +764,7 @@ discard block |
||
| 764 | 764 | * createKnownedProduct |
| 765 | 765 | * |
| 766 | 766 | * @access private |
| 767 | - * @return AbstractModel |
|
| 767 | + * @return \Mapado\RestClientSdk\Tests\Model\Product |
|
| 768 | 768 | */ |
| 769 | 769 | private function createKnownedProduct() |
| 770 | 770 | { |
@@ -787,6 +787,7 @@ discard block |
||
| 787 | 787 | * createNewInstance |
| 788 | 788 | * |
| 789 | 789 | * @access private |
| 790 | + * @param Mapping $mapping |
|
| 790 | 791 | * @return void |
| 791 | 792 | */ |
| 792 | 793 | private function createNewInstance($mapping = null) |
@@ -815,6 +816,9 @@ discard block |
||
| 815 | 816 | $this->testedInstance->setSdk($sdk); |
| 816 | 817 | } |
| 817 | 818 | |
| 819 | + /** |
|
| 820 | + * @param string $modelName |
|
| 821 | + */ |
|
| 818 | 822 | private function getCartRepositoryMock($sdk, $restClient, $modelName) |
| 819 | 823 | { |
| 820 | 824 | $repository = new \mock\Mapado\RestClientSdk\EntityRepository( |