1 | <?php |
||
28 | class RaListingService extends AbstractSearchService |
||
29 | { |
||
30 | /** |
||
31 | * @var RaListingRepository |
||
32 | */ |
||
33 | private $raListingRepository; |
||
34 | |||
35 | public function __construct(RaListingRepository $raListingRepository) |
||
39 | |||
40 | /** |
||
41 | * @param IdentityId $identityId |
||
42 | * @return null|\Surfnet\StepupMiddleware\ApiBundle\Identity\Entity\RaListing |
||
|
|||
43 | */ |
||
44 | public function findByIdentityId(IdentityId $identityId) |
||
48 | |||
49 | public function findByIdentityIdAndInstitution(IdentityId $identityId, Institution $raInstitution) |
||
53 | |||
54 | /** |
||
55 | * @param RaListingQuery $query |
||
56 | * @return \Pagerfanta\Pagerfanta |
||
57 | */ |
||
58 | public function search(RaListingQuery $query) |
||
66 | |||
67 | /** |
||
68 | * @param Institution $institution |
||
69 | * @return RegistrationAuthorityCredentials[] |
||
70 | */ |
||
71 | public function listRegistrationAuthoritiesFor(Institution $institution) |
||
81 | } |
||
82 |
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.