1 | <?php |
||
30 | class IdentityService |
||
31 | { |
||
32 | /** |
||
33 | * @var ApiService |
||
34 | */ |
||
35 | private $apiService; |
||
36 | |||
37 | /** |
||
38 | * @param ApiService $apiService |
||
39 | */ |
||
40 | public function __construct(ApiService $apiService) |
||
44 | |||
45 | /** |
||
46 | * @param string $id |
||
47 | * @return null|array |
||
48 | * @throws AccessDeniedToResourceException When the consumer isn't authorised to access given resource. |
||
49 | * @throws ResourceReadException When the server doesn't respond with the resource. |
||
50 | * @throws MalformedResponseException When the server doesn't respond with (well-formed) JSON. |
||
51 | */ |
||
52 | public function get($id) |
||
56 | |||
57 | /** |
||
58 | * @param IdentitySearchQuery $searchQuery |
||
59 | * @return array|null |
||
60 | */ |
||
61 | public function search(IdentitySearchQuery $searchQuery) |
||
65 | |||
66 | /** |
||
67 | * @param string $identityId |
||
68 | * @return array|null |
||
69 | */ |
||
70 | public function getRegistrationAuthorityCredentials($identityId) |
||
74 | } |
||
75 |