@@ -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( |
@@ -33,13 +33,13 @@ |
||
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | /** |
| 36 | - * convertId |
|
| 37 | - * |
|
| 38 | - * @param string $id |
|
| 39 | - * @param string $modelName |
|
| 40 | - * @access public |
|
| 41 | - * @return string |
|
| 42 | - */ |
|
| 36 | + * convertId |
|
| 37 | + * |
|
| 38 | + * @param string $id |
|
| 39 | + * @param string $modelName |
|
| 40 | + * @access public |
|
| 41 | + * @return string |
|
| 42 | + */ |
|
| 43 | 43 | public function convertId($id, $modelName) |
| 44 | 44 | { |
| 45 | 45 | // add slash if needed to have a valid hydra id |
@@ -209,11 +209,11 @@ |
||
| 209 | 209 | /** |
| 210 | 210 | * logRequest |
| 211 | 211 | * |
| 212 | - * @param mixed $startTime |
|
| 213 | - * @param mixed $method |
|
| 214 | - * @param mixed $url |
|
| 212 | + * @param double|null $startTime |
|
| 213 | + * @param string $method |
|
| 214 | + * @param string $url |
|
| 215 | 215 | * @param mixed $parameters |
| 216 | - * @param mixed $response |
|
| 216 | + * @param \Psr\Http\Message\ResponseInterface $response |
|
| 217 | 217 | * @access private |
| 218 | 218 | * @return void |
| 219 | 219 | */ |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | |
| 25 | 25 | /** |
| 26 | 26 | * Constructor |
| 27 | - * @param ClientInterface $restClient |
|
| 27 | + * @param RestClient $restClient |
|
| 28 | 28 | */ |
| 29 | 29 | public function __construct(RestClient $restClient, Mapping $mapping, Serializer $serializer = null) |
| 30 | 30 | { |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | * |
| 114 | 114 | * @param string $id |
| 115 | 115 | * @access public |
| 116 | - * @return object |
|
| 116 | + * @return \ProxyManager\Proxy\GhostObjectInterface |
|
| 117 | 117 | */ |
| 118 | 118 | public function createProxy($id) |
| 119 | 119 | { |
@@ -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 | { |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | ->then |
| 72 | 72 | ->object($this->testedInstance->get('/not-json')) |
| 73 | 73 | ->isInstanceOf('\GuzzleHttp\Psr7\Response') |
| 74 | - ; |
|
| 74 | + ; |
|
| 75 | 75 | } |
| 76 | 76 | |
| 77 | 77 | /** |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | ->isInstanceOf('Mapado\RestClientSdk\Exception\RestException') |
| 111 | 111 | ->hasMessage('Error while deleting resource') |
| 112 | 112 | ->hasCode(2) |
| 113 | - ; |
|
| 113 | + ; |
|
| 114 | 114 | } |
| 115 | 115 | |
| 116 | 116 | /** |
@@ -15,12 +15,12 @@ |
||
| 15 | 15 | private $firstPage = null; |
| 16 | 16 | |
| 17 | 17 | /** |
| 18 | - * @var string URI of the last page |
|
| 18 | + * @var string URI of the last page |
|
| 19 | 19 | */ |
| 20 | 20 | private $lastPage = null; |
| 21 | 21 | |
| 22 | 22 | /** |
| 23 | - * @var string URI of the next page |
|
| 23 | + * @var string URI of the next page |
|
| 24 | 24 | */ |
| 25 | 25 | private $nextPage = null; |
| 26 | 26 | |