1 | <?php |
||
33 | class SecondFactorService |
||
34 | { |
||
35 | /** |
||
36 | * @var ApiService |
||
37 | */ |
||
38 | private $apiService; |
||
39 | |||
40 | /** |
||
41 | * @param ApiService $apiService |
||
42 | */ |
||
43 | public function __construct(ApiService $apiService) |
||
47 | |||
48 | /** |
||
49 | * @param string $secondFactorId |
||
50 | * @return null|array |
||
51 | * @throws AccessDeniedToResourceException When the consumer isn't authorised to access given resource. |
||
52 | * @throws ResourceReadException When the server doesn't respond with the resource. |
||
53 | * @throws MalformedResponseException When the server doesn't respond with (well-formed) JSON. |
||
54 | */ |
||
55 | public function getUnverified($secondFactorId) |
||
59 | |||
60 | /** |
||
61 | * @param string $secondFactorId |
||
62 | * @return null|array |
||
63 | * @throws AccessDeniedToResourceException When the consumer isn't authorised to access given resource. |
||
64 | * @throws ResourceReadException When the server doesn't respond with the resource. |
||
65 | * @throws MalformedResponseException When the server doesn't respond with (well-formed) JSON. |
||
66 | */ |
||
67 | public function getVerified($secondFactorId) |
||
71 | |||
72 | /** |
||
73 | * @param string $secondFactorId |
||
74 | * @return null|array |
||
75 | * @throws AccessDeniedToResourceException When the consumer isn't authorised to access given resource. |
||
76 | * @throws ResourceReadException When the server doesn't respond with the resource. |
||
77 | * @throws MalformedResponseException When the server doesn't respond with (well-formed) JSON. |
||
78 | */ |
||
79 | public function getVetted($secondFactorId) |
||
83 | |||
84 | /** |
||
85 | * @param UnverifiedSecondFactorSearchQuery $query |
||
86 | * @return null|array |
||
87 | * @throws AccessDeniedToResourceException When the consumer isn't authorised to access given resource. |
||
88 | * @throws ResourceReadException When the server doesn't respond with the resource. |
||
89 | * @throws MalformedResponseException When the server doesn't respond with (well-formed) JSON. |
||
90 | */ |
||
91 | public function searchUnverified(UnverifiedSecondFactorSearchQuery $query) |
||
95 | |||
96 | /** |
||
97 | * @param VerifiedSecondFactorSearchQuery $query |
||
98 | * @return null|array |
||
99 | * @throws AccessDeniedToResourceException When the consumer isn't authorised to access given resource. |
||
100 | * @throws ResourceReadException When the server doesn't respond with the resource. |
||
101 | * @throws MalformedResponseException When the server doesn't respond with (well-formed) JSON. |
||
102 | */ |
||
103 | public function searchVerified(VerifiedSecondFactorSearchQuery $query) |
||
107 | |||
108 | /** |
||
109 | * @param VerifiedSecondFactorOfIdentitySearchQuery $query |
||
110 | * @return null|array |
||
111 | * @throws AccessDeniedToResourceException When the consumer isn't authorised to access given resource. |
||
112 | * @throws ResourceReadException When the server doesn't respond with the resource. |
||
113 | * @throws MalformedResponseException When the server doesn't respond with (well-formed) JSON. |
||
114 | */ |
||
115 | public function searchOwnVerified(VerifiedSecondFactorOfIdentitySearchQuery $query) |
||
119 | |||
120 | /** |
||
121 | * @param VettedSecondFactorSearchQuery $query |
||
122 | * @return null|array |
||
123 | * @throws AccessDeniedToResourceException When the consumer isn't authorised to access given resource. |
||
124 | * @throws ResourceReadException When the server doesn't respond with the resource. |
||
125 | * @throws MalformedResponseException When the server doesn't respond with (well-formed) JSON. |
||
126 | */ |
||
127 | public function searchVetted(VettedSecondFactorSearchQuery $query) |
||
131 | } |
||
132 |