@@ -52,17 +52,17 @@ |
||
| 52 | 52 | public function withIncludes(iterable $includes): self; |
| 53 | 53 | |
| 54 | 54 | /** |
| 55 | - * @return iterable |
|
| 55 | + * @return \Generator |
|
| 56 | 56 | */ |
| 57 | 57 | public function getMappedFilters(): iterable; |
| 58 | 58 | |
| 59 | 59 | /** |
| 60 | - * @return iterable |
|
| 60 | + * @return \Generator |
|
| 61 | 61 | */ |
| 62 | 62 | public function getMappedSorts(): iterable; |
| 63 | 63 | |
| 64 | 64 | /** |
| 65 | - * @return iterable |
|
| 65 | + * @return \Generator |
|
| 66 | 66 | */ |
| 67 | 67 | public function getMappedIncludes(): iterable; |
| 68 | 68 | |
@@ -171,7 +171,7 @@ discard block |
||
| 171 | 171 | } |
| 172 | 172 | |
| 173 | 173 | /** |
| 174 | - * @param iterable $attributes |
|
| 174 | + * @param \Generator $attributes |
|
| 175 | 175 | * |
| 176 | 176 | * @return self |
| 177 | 177 | * |
@@ -193,7 +193,7 @@ discard block |
||
| 193 | 193 | } |
| 194 | 194 | |
| 195 | 195 | /** |
| 196 | - * @param iterable $attributes |
|
| 196 | + * @param \Generator $attributes |
|
| 197 | 197 | * |
| 198 | 198 | * @return self |
| 199 | 199 | * |
@@ -216,7 +216,7 @@ discard block |
||
| 216 | 216 | * @param string $modelClass |
| 217 | 217 | * @param iterable $attributes |
| 218 | 218 | * |
| 219 | - * @return iterable |
|
| 219 | + * @return \Generator |
|
| 220 | 220 | * |
| 221 | 221 | * @SuppressWarnings(PHPMD.StaticAccess) |
| 222 | 222 | * |
@@ -315,7 +315,7 @@ discard block |
||
| 315 | 315 | } |
| 316 | 316 | |
| 317 | 317 | /** |
| 318 | - * @param iterable $filters |
|
| 318 | + * @param \Limoncello\Flute\Api\iterable|null $filters |
|
| 319 | 319 | * |
| 320 | 320 | * @return self |
| 321 | 321 | * |
@@ -331,7 +331,7 @@ discard block |
||
| 331 | 331 | } |
| 332 | 332 | |
| 333 | 333 | /** |
| 334 | - * @param iterable $filters |
|
| 334 | + * @param \Limoncello\Flute\Api\iterable|null $filters |
|
| 335 | 335 | * |
| 336 | 336 | * @return self |
| 337 | 337 | * |
@@ -347,7 +347,7 @@ discard block |
||
| 347 | 347 | } |
| 348 | 348 | |
| 349 | 349 | /** |
| 350 | - * @param iterable $filters |
|
| 350 | + * @param \Limoncello\Flute\Api\iterable|null $filters |
|
| 351 | 351 | * |
| 352 | 352 | * @return self |
| 353 | 353 | * |
@@ -391,7 +391,7 @@ discard block |
||
| 391 | 391 | |
| 392 | 392 | /** |
| 393 | 393 | * @param string $relationshipName |
| 394 | - * @param iterable $relationshipFilters |
|
| 394 | + * @param \Limoncello\Flute\Api\iterable|null $relationshipFilters |
|
| 395 | 395 | * @param iterable|null $relationshipSorts |
| 396 | 396 | * |
| 397 | 397 | * @return self |
@@ -417,7 +417,7 @@ discard block |
||
| 417 | 417 | } |
| 418 | 418 | |
| 419 | 419 | /** |
| 420 | - * @param iterable $sortParameters |
|
| 420 | + * @param \Limoncello\Flute\Api\iterable|null $sortParameters |
|
| 421 | 421 | * |
| 422 | 422 | * @return self |
| 423 | 423 | */ |
@@ -756,9 +756,9 @@ discard block |
||
| 756 | 756 | } |
| 757 | 757 | |
| 758 | 758 | /** |
| 759 | - * @param iterable $paths (string[]) |
|
| 759 | + * @param iterable|null $paths (string[]) |
|
| 760 | 760 | * |
| 761 | - * @return iterable |
|
| 761 | + * @return Generator |
|
| 762 | 762 | */ |
| 763 | 763 | private static function getPaths(iterable $paths): iterable |
| 764 | 764 | { |
@@ -1399,7 +1399,7 @@ discard block |
||
| 1399 | 1399 | * @param string $modelClass |
| 1400 | 1400 | * @param string $keyColumnName |
| 1401 | 1401 | * |
| 1402 | - * @return iterable |
|
| 1402 | + * @return Generator |
|
| 1403 | 1403 | * |
| 1404 | 1404 | * @throws DBALException |
| 1405 | 1405 | * |
@@ -1503,7 +1503,7 @@ discard block |
||
| 1503 | 1503 | * @param null|string $index |
| 1504 | 1504 | * @param iterable $attributes |
| 1505 | 1505 | * |
| 1506 | - * @return iterable |
|
| 1506 | + * @return Generator |
|
| 1507 | 1507 | */ |
| 1508 | 1508 | protected function filterAttributesOnCreate(?string $index, iterable $attributes): iterable |
| 1509 | 1509 | { |
@@ -1523,7 +1523,7 @@ discard block |
||
| 1523 | 1523 | /** |
| 1524 | 1524 | * @param iterable $attributes |
| 1525 | 1525 | * |
| 1526 | - * @return iterable |
|
| 1526 | + * @return Generator |
|
| 1527 | 1527 | */ |
| 1528 | 1528 | protected function filterAttributesOnUpdate(iterable $attributes): iterable |
| 1529 | 1529 | { |
@@ -1722,10 +1722,10 @@ discard block |
||
| 1722 | 1722 | |
| 1723 | 1723 | /** |
| 1724 | 1724 | * @param iterable $attributes |
| 1725 | - * @param array $typeNames |
|
| 1725 | + * @param Type[] $typeNames |
|
| 1726 | 1726 | * @param AbstractPlatform $platform |
| 1727 | 1727 | * |
| 1728 | - * @return iterable |
|
| 1728 | + * @return Generator |
|
| 1729 | 1729 | * |
| 1730 | 1730 | * @throws DBALException |
| 1731 | 1731 | */ |
@@ -409,7 +409,7 @@ |
||
| 409 | 409 | * @param string $parameterName |
| 410 | 410 | * @param iterable $value |
| 411 | 411 | * |
| 412 | - * @return iterable |
|
| 412 | + * @return Generator |
|
| 413 | 413 | * |
| 414 | 414 | * @SuppressWarnings(PHPMD.CyclomaticComplexity) |
| 415 | 415 | */ |
@@ -379,7 +379,7 @@ discard block |
||
| 379 | 379 | } |
| 380 | 380 | |
| 381 | 381 | /** |
| 382 | - * @return iterable |
|
| 382 | + * @return Generator |
|
| 383 | 383 | * |
| 384 | 384 | * @SuppressWarnings(PHPMD.ElseExpression) |
| 385 | 385 | */ |
@@ -421,9 +421,9 @@ discard block |
||
| 421 | 421 | } |
| 422 | 422 | |
| 423 | 423 | /** |
| 424 | - * @param iterable $fieldsFromParent |
|
| 424 | + * @param Generator $fieldsFromParent |
|
| 425 | 425 | * |
| 426 | - * @return iterable |
|
| 426 | + * @return Generator |
|
| 427 | 427 | * |
| 428 | 428 | * @SuppressWarnings(PHPMD.StaticAccess) |
| 429 | 429 | * @SuppressWarnings(PHPMD.ElseExpression) |
@@ -456,9 +456,9 @@ discard block |
||
| 456 | 456 | } |
| 457 | 457 | |
| 458 | 458 | /** |
| 459 | - * @param iterable $sortsFromParent |
|
| 459 | + * @param Generator $sortsFromParent |
|
| 460 | 460 | * |
| 461 | - * @return iterable |
|
| 461 | + * @return Generator |
|
| 462 | 462 | * |
| 463 | 463 | * @SuppressWarnings(PHPMD.StaticAccess) |
| 464 | 464 | * @SuppressWarnings(PHPMD.ElseExpression) |
@@ -488,9 +488,9 @@ discard block |
||
| 488 | 488 | } |
| 489 | 489 | |
| 490 | 490 | /** |
| 491 | - * @param iterable $includesFromParent |
|
| 491 | + * @param Generator $includesFromParent |
|
| 492 | 492 | * |
| 493 | - * @return iterable |
|
| 493 | + * @return Generator |
|
| 494 | 494 | * |
| 495 | 495 | * @SuppressWarnings(PHPMD.StaticAccess) |
| 496 | 496 | * @SuppressWarnings(PHPMD.ElseExpression) |
@@ -520,7 +520,7 @@ discard block |
||
| 520 | 520 | } |
| 521 | 521 | |
| 522 | 522 | /** |
| 523 | - * @param iterable $iterable |
|
| 523 | + * @param Generator $iterable |
|
| 524 | 524 | * |
| 525 | 525 | * @return array |
| 526 | 526 | */ |
@@ -683,7 +683,7 @@ discard block |
||
| 683 | 683 | * @param int $ruleIndex |
| 684 | 684 | * @param iterable $values |
| 685 | 685 | * |
| 686 | - * @return iterable |
|
| 686 | + * @return Generator |
|
| 687 | 687 | */ |
| 688 | 688 | private function validateValues(int $ruleIndex, iterable $values): iterable |
| 689 | 689 | { |
@@ -698,9 +698,9 @@ discard block |
||
| 698 | 698 | |
| 699 | 699 | /** |
| 700 | 700 | * @param int $ruleIndex |
| 701 | - * @param iterable $opsAndArgs |
|
| 701 | + * @param Generator $opsAndArgs |
|
| 702 | 702 | * |
| 703 | - * @return iterable |
|
| 703 | + * @return Generator |
|
| 704 | 704 | */ |
| 705 | 705 | private function validateFilterArguments(int $ruleIndex, iterable $opsAndArgs): iterable |
| 706 | 706 | { |
@@ -858,7 +858,7 @@ discard block |
||
| 858 | 858 | * @param string $parameterName |
| 859 | 859 | * @param array $value |
| 860 | 860 | * |
| 861 | - * @return iterable |
|
| 861 | + * @return Generator |
|
| 862 | 862 | * |
| 863 | 863 | * @SuppressWarnings(PHPMD.ElseExpression) |
| 864 | 864 | */ |
@@ -1,20 +1,20 @@ |
||
| 1 | 1 | <?php namespace Limoncello\Flute\Contracts\Models; |
| 2 | 2 | |
| 3 | 3 | /** |
| 4 | - * Copyright 2015-2018 [email protected] |
|
| 5 | - * |
|
| 6 | - * Licensed under the Apache License, Version 2.0 (the "License"); |
|
| 7 | - * you may not use this file except in compliance with the License. |
|
| 8 | - * You may obtain a copy of the License at |
|
| 9 | - * |
|
| 10 | - * http://www.apache.org/licenses/LICENSE-2.0 |
|
| 11 | - * |
|
| 12 | - * Unless required by applicable law or agreed to in writing, software |
|
| 13 | - * distributed under the License is distributed on an "AS IS" BASIS, |
|
| 14 | - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
| 15 | - * See the License for the specific language governing permissions and |
|
| 16 | - * limitations under the License. |
|
| 17 | - */ |
|
| 4 | + * Copyright 2015-2018 [email protected] |
|
| 5 | + * |
|
| 6 | + * Licensed under the Apache License, Version 2.0 (the "License"); |
|
| 7 | + * you may not use this file except in compliance with the License. |
|
| 8 | + * You may obtain a copy of the License at |
|
| 9 | + * |
|
| 10 | + * http://www.apache.org/licenses/LICENSE-2.0 |
|
| 11 | + * |
|
| 12 | + * Unless required by applicable law or agreed to in writing, software |
|
| 13 | + * distributed under the License is distributed on an "AS IS" BASIS, |
|
| 14 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
| 15 | + * See the License for the specific language governing permissions and |
|
| 16 | + * limitations under the License. |
|
| 17 | + */ |
|
| 18 | 18 | |
| 19 | 19 | /** |
| 20 | 20 | * @package Limoncello\Flute |
@@ -1,20 +1,20 @@ |
||
| 1 | 1 | <?php namespace Limoncello\Flute\Contracts\Models; |
| 2 | 2 | |
| 3 | 3 | /** |
| 4 | - * Copyright 2015-2018 [email protected] |
|
| 5 | - * |
|
| 6 | - * Licensed under the Apache License, Version 2.0 (the "License"); |
|
| 7 | - * you may not use this file except in compliance with the License. |
|
| 8 | - * You may obtain a copy of the License at |
|
| 9 | - * |
|
| 10 | - * http://www.apache.org/licenses/LICENSE-2.0 |
|
| 11 | - * |
|
| 12 | - * Unless required by applicable law or agreed to in writing, software |
|
| 13 | - * distributed under the License is distributed on an "AS IS" BASIS, |
|
| 14 | - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
| 15 | - * See the License for the specific language governing permissions and |
|
| 16 | - * limitations under the License. |
|
| 17 | - */ |
|
| 4 | + * Copyright 2015-2018 [email protected] |
|
| 5 | + * |
|
| 6 | + * Licensed under the Apache License, Version 2.0 (the "License"); |
|
| 7 | + * you may not use this file except in compliance with the License. |
|
| 8 | + * You may obtain a copy of the License at |
|
| 9 | + * |
|
| 10 | + * http://www.apache.org/licenses/LICENSE-2.0 |
|
| 11 | + * |
|
| 12 | + * Unless required by applicable law or agreed to in writing, software |
|
| 13 | + * distributed under the License is distributed on an "AS IS" BASIS, |
|
| 14 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
| 15 | + * See the License for the specific language governing permissions and |
|
| 16 | + * limitations under the License. |
|
| 17 | + */ |
|
| 18 | 18 | |
| 19 | 19 | /** |
| 20 | 20 | * @package Limoncello\Flute |
@@ -1,20 +1,20 @@ |
||
| 1 | 1 | <?php namespace Limoncello\Flute\Contracts\Models; |
| 2 | 2 | |
| 3 | 3 | /** |
| 4 | - * Copyright 2015-2018 [email protected] |
|
| 5 | - * |
|
| 6 | - * Licensed under the Apache License, Version 2.0 (the "License"); |
|
| 7 | - * you may not use this file except in compliance with the License. |
|
| 8 | - * You may obtain a copy of the License at |
|
| 9 | - * |
|
| 10 | - * http://www.apache.org/licenses/LICENSE-2.0 |
|
| 11 | - * |
|
| 12 | - * Unless required by applicable law or agreed to in writing, software |
|
| 13 | - * distributed under the License is distributed on an "AS IS" BASIS, |
|
| 14 | - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
| 15 | - * See the License for the specific language governing permissions and |
|
| 16 | - * limitations under the License. |
|
| 17 | - */ |
|
| 4 | + * Copyright 2015-2018 [email protected] |
|
| 5 | + * |
|
| 6 | + * Licensed under the Apache License, Version 2.0 (the "License"); |
|
| 7 | + * you may not use this file except in compliance with the License. |
|
| 8 | + * You may obtain a copy of the License at |
|
| 9 | + * |
|
| 10 | + * http://www.apache.org/licenses/LICENSE-2.0 |
|
| 11 | + * |
|
| 12 | + * Unless required by applicable law or agreed to in writing, software |
|
| 13 | + * distributed under the License is distributed on an "AS IS" BASIS, |
|
| 14 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
| 15 | + * See the License for the specific language governing permissions and |
|
| 16 | + * limitations under the License. |
|
| 17 | + */ |
|
| 18 | 18 | |
| 19 | 19 | /** |
| 20 | 20 | * @package Limoncello\Flute |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | public function fetchResources(QueryBuilder $builder, string $modelClass): PaginatedDataInterface; |
| 121 | 121 | |
| 122 | 122 | /** |
| 123 | - * @param QueryBuilder|null $builder |
|
| 123 | + * @param QueryBuilder $builder |
|
| 124 | 124 | * @param string|null $modelClass |
| 125 | 125 | * |
| 126 | 126 | * @return mixed|null |
@@ -140,7 +140,7 @@ discard block |
||
| 140 | 140 | * @param string $modelClass |
| 141 | 141 | * @param string $columnName |
| 142 | 142 | * |
| 143 | - * @return iterable |
|
| 143 | + * @return \Generator |
|
| 144 | 144 | */ |
| 145 | 145 | public function fetchColumn(QueryBuilder $builder, string $modelClass, string $columnName): iterable; |
| 146 | 146 | |