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