@@ -54,7 +54,7 @@ |
||
| 54 | 54 | private $httpCode; |
| 55 | 55 | |
| 56 | 56 | /** |
| 57 | - * @param ErrorInterface|iterable $errors |
|
| 57 | + * @param ErrorInterface $errors |
|
| 58 | 58 | * @param int $httpCode |
| 59 | 59 | * @param Exception|null $previous |
| 60 | 60 | * |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | * @param array $parameters |
| 31 | 31 | * @param string $errorTitle |
| 32 | 32 | * |
| 33 | - * @return iterable |
|
| 33 | + * @return \Generator |
|
| 34 | 34 | */ |
| 35 | 35 | protected function getIncludes(array $parameters, string $errorTitle): iterable |
| 36 | 36 | { |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | * @param array $parameters |
| 48 | 48 | * @param string $errorTitle |
| 49 | 49 | * |
| 50 | - * @return iterable |
|
| 50 | + * @return \Generator |
|
| 51 | 51 | */ |
| 52 | 52 | protected function getFields(array $parameters, string $errorTitle): iterable |
| 53 | 53 | { |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | * @param array $parameters |
| 68 | 68 | * @param string $errorTitle |
| 69 | 69 | * |
| 70 | - * @return iterable |
|
| 70 | + * @return \Generator |
|
| 71 | 71 | */ |
| 72 | 72 | protected function getSorts(array $parameters, string $errorTitle): iterable |
| 73 | 73 | { |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | * @param array $parameters |
| 100 | 100 | * @param string $errorTitle |
| 101 | 101 | * |
| 102 | - * @return iterable |
|
| 102 | + * @return \Generator |
|
| 103 | 103 | */ |
| 104 | 104 | protected function getProfileUrls(array $parameters, string $errorTitle): iterable |
| 105 | 105 | { |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | * @param string|mixed $shouldBeString |
| 120 | 120 | * @param string $errorTitle |
| 121 | 121 | * |
| 122 | - * @return iterable |
|
| 122 | + * @return \Generator |
|
| 123 | 123 | */ |
| 124 | 124 | private function splitCommaSeparatedStringAndCheckNoEmpties( |
| 125 | 125 | string $paramName, |
@@ -131,10 +131,10 @@ discard block |
||
| 131 | 131 | |
| 132 | 132 | /** |
| 133 | 133 | * @param string $paramName |
| 134 | - * @param string|mixed $shouldBeString |
|
| 134 | + * @param string $shouldBeString |
|
| 135 | 135 | * @param string $errorTitle |
| 136 | 136 | * |
| 137 | - * @return iterable |
|
| 137 | + * @return \Generator |
|
| 138 | 138 | */ |
| 139 | 139 | private function splitSpaceSeparatedStringAndCheckNoEmpties( |
| 140 | 140 | string $paramName, |
@@ -150,7 +150,7 @@ discard block |
||
| 150 | 150 | * @param string $separator |
| 151 | 151 | * @param string $errorTitle |
| 152 | 152 | * |
| 153 | - * @return iterable |
|
| 153 | + * @return \Generator |
|
| 154 | 154 | */ |
| 155 | 155 | private function splitStringAndCheckNoEmpties( |
| 156 | 156 | string $paramName, |
@@ -79,7 +79,7 @@ |
||
| 79 | 79 | } |
| 80 | 80 | |
| 81 | 81 | /** |
| 82 | - * @param mixed $identifier |
|
| 82 | + * @param SchemaIdentifierInterface $identifier |
|
| 83 | 83 | * |
| 84 | 84 | * @return ResourceInterface |
| 85 | 85 | */ |
@@ -448,7 +448,7 @@ |
||
| 448 | 448 | * @param bool $addSelfLink |
| 449 | 449 | * @param bool $addRelatedLink |
| 450 | 450 | * |
| 451 | - * @return iterable |
|
| 451 | + * @return \Generator |
|
| 452 | 452 | */ |
| 453 | 453 | private function parseLinks( |
| 454 | 454 | string $relationshipName, |
@@ -507,7 +507,8 @@ discard block |
||
| 507 | 507 | $factory, |
| 508 | 508 | $schemaContainer, |
| 509 | 509 | $resource |
| 510 | - ) extends BaseRelationshipData implements RelationshipDataInterface { |
|
| 510 | + ) extends BaseRelationshipData implements RelationshipDataInterface |
|
| 511 | + { |
|
| 511 | 512 | /** |
| 512 | 513 | * @var mixed |
| 513 | 514 | */ |
@@ -623,7 +624,8 @@ discard block |
||
| 623 | 624 | $factory, |
| 624 | 625 | $schemaContainer, |
| 625 | 626 | $identifier |
| 626 | - ) extends BaseRelationshipData implements RelationshipDataInterface { |
|
| 627 | + ) extends BaseRelationshipData implements RelationshipDataInterface |
|
| 628 | + { |
|
| 627 | 629 | /** |
| 628 | 630 | * @var mixed |
| 629 | 631 | */ |
@@ -739,7 +741,8 @@ discard block |
||
| 739 | 741 | $factory, |
| 740 | 742 | $schemaContainer, |
| 741 | 743 | $resources |
| 742 | - ) extends BaseRelationshipData implements RelationshipDataInterface { |
|
| 744 | + ) extends BaseRelationshipData implements RelationshipDataInterface |
|
| 745 | + { |
|
| 743 | 746 | /** |
| 744 | 747 | * @var iterable |
| 745 | 748 | */ |
@@ -203,7 +203,7 @@ discard block |
||
| 203 | 203 | * @see ResourceInterface |
| 204 | 204 | * @see IdentifierInterface |
| 205 | 205 | * |
| 206 | - * @return iterable |
|
| 206 | + * @return \Generator |
|
| 207 | 207 | */ |
| 208 | 208 | private function parseAsResourcesOrIdentifiers( |
| 209 | 209 | PositionInterface $position, |
@@ -225,7 +225,7 @@ discard block |
||
| 225 | 225 | * |
| 226 | 226 | * @see ResourceInterface |
| 227 | 227 | * |
| 228 | - * @return iterable |
|
| 228 | + * @return \Generator |
|
| 229 | 229 | * |
| 230 | 230 | */ |
| 231 | 231 | private function parseAsResource( |
@@ -246,7 +246,7 @@ discard block |
||
| 246 | 246 | /** |
| 247 | 247 | * @param ResourceInterface $resource |
| 248 | 248 | * |
| 249 | - * @return iterable |
|
| 249 | + * @return \Generator |
|
| 250 | 250 | */ |
| 251 | 251 | private function parseResource(ResourceInterface $resource): iterable |
| 252 | 252 | { |
@@ -435,7 +435,8 @@ |
||
| 435 | 435 | $isNull, |
| 436 | 436 | $isResource, |
| 437 | 437 | $isIdentifier |
| 438 | - ) implements DocumentDataInterface { |
|
| 438 | + ) implements DocumentDataInterface |
|
| 439 | + { |
|
| 439 | 440 | /** |
| 440 | 441 | * @var PositionInterface |
| 441 | 442 | */ |
@@ -115,7 +115,7 @@ |
||
| 115 | 115 | * @param string $type |
| 116 | 116 | * @param iterable $fields |
| 117 | 117 | * |
| 118 | - * @return iterable |
|
| 118 | + * @return \Generator |
|
| 119 | 119 | */ |
| 120 | 120 | protected function filterFields(string $type, iterable $fields): iterable |
| 121 | 121 | { |
@@ -296,7 +296,8 @@ |
||
| 296 | 296 | $links, |
| 297 | 297 | $hasMeta, |
| 298 | 298 | $meta |
| 299 | - ) implements RelationshipInterface { |
|
| 299 | + ) implements RelationshipInterface |
|
| 300 | + { |
|
| 300 | 301 | /** |
| 301 | 302 | * @var PositionInterface |
| 302 | 303 | */ |