1 | <?php |
||
35 | class RaSecondFactorService |
||
36 | { |
||
37 | /** |
||
38 | * @var LibraryRaSecondFactorService |
||
39 | */ |
||
40 | private $service; |
||
41 | |||
42 | /** |
||
43 | * @var ValidatorInterface |
||
44 | */ |
||
45 | private $validator; |
||
46 | |||
47 | /** |
||
48 | * @param LibraryRaSecondFactorService $service |
||
49 | * @param ValidatorInterface $validator |
||
50 | */ |
||
51 | public function __construct(LibraryRaSecondFactorService $service, ValidatorInterface $validator) |
||
56 | |||
57 | /** |
||
58 | * @param RaSecondFactorSearchQuery $query |
||
59 | * @return RaSecondFactorCollection |
||
|
|||
60 | * @throws AccessDeniedToResourceException When the consumer isn't authorised to access given resource. |
||
61 | * @throws InvalidResponseException When the API responded with invalid data. |
||
62 | * @throws ResourceReadException When the API doesn't respond with the resource. |
||
63 | * @throws MalformedResponseException When the API doesn't respond with a proper response. |
||
64 | */ |
||
65 | public function search(RaSecondFactorSearchQuery $query) |
||
85 | /** |
||
86 | * @param RaSecondFactorExportQuery $query |
||
87 | * @return RaSecondFactorExportCollection |
||
88 | * @throws AccessDeniedToResourceException When the consumer isn't authorised to access given resource. |
||
89 | * @throws InvalidResponseException When the API responded with invalid data. |
||
90 | * @throws ResourceReadException When the API doesn't respond with the resource. |
||
91 | * @throws MalformedResponseException When the API doesn't respond with a proper response. |
||
92 | */ |
||
93 | public function searchForExport(RaSecondFactorExportQuery $query) |
||
113 | } |
||
114 |
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.