| Total Complexity | 2 |
| Total Lines | 15 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | #[ORM\Entity] |
||
| 15 | final class ArrayOfEntity extends AbstractModel |
||
| 16 | { |
||
| 17 | #[API\Field(type: 'GraphQLTests\Doctrine\Blog\Model\User[]')] |
||
| 18 | public function getUsers(): array |
||
| 19 | { |
||
| 20 | return [new User(), new User()]; |
||
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @return Collection<int, User> |
||
| 25 | */ |
||
| 26 | public function getOtherUsers(): Collection |
||
| 29 | } |
||
| 30 | } |
||
| 31 |