-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge AddReturnDocBlockToCollectionPropertyGetterByToManyAttributeRec…
…tor to single rule
- Loading branch information
1 parent
8bcc255
commit 8284fce
Showing
20 changed files
with
164 additions
and
602 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
...tyGetterByToManyAnnotationRector/Fixture/ManyToMany/attribute_getter_with_return_type.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
namespace Rector\Doctrine\Tests\CodeQuality\Rector\Class_\AddReturnDocBlockToCollectionPropertyGetterByToManyAnnotationRector\Fixture\ManyToMany; | ||
|
||
use Doctrine\Common\Collections\Collection; | ||
use Doctrine\ORM\Mapping as ORM; | ||
use Rector\Doctrine\Tests\CodeQuality\Rector\Class_\AddReturnDocBlockToCollectionPropertyGetterByToManyAnnotationRector\Source\Training; | ||
|
||
#[ORM\Entity] | ||
final class Trainer | ||
{ | ||
#[ORM\ManyToMany(targetEntity:Training::class, mappedBy:"trainer")] | ||
private $trainings; | ||
|
||
public function getTrainings(): Collection | ||
{ | ||
return $this->trainings; | ||
} | ||
} | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 0 additions & 28 deletions
28
...ttributeRector/AddReturnDocBlockToCollectionPropertyGetterByToManyAttributeRectorTest.php
This file was deleted.
Oops, something went wrong.
41 changes: 0 additions & 41 deletions
41
...GetterByToManyAttributeRector/Fixture/OneToMany/association_with_no_target_entity.php.inc
This file was deleted.
Oops, something went wrong.
46 changes: 0 additions & 46 deletions
46
...ropertyGetterByToManyAttributeRector/Fixture/OneToMany/getter_without_return_type.php.inc
This file was deleted.
Oops, something went wrong.
57 changes: 0 additions & 57 deletions
57
...ByToManyAttributeRector/Fixture/OneToMany/multiple_returned_collection_properties.php.inc
This file was deleted.
Oops, something went wrong.
39 changes: 0 additions & 39 deletions
39
...tionPropertyGetterByToManyAttributeRector/Fixture/OneToMany/no_collection_methods.php.inc
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.