1 | <?php |
||
27 | class ProfileService |
||
28 | { |
||
29 | /** |
||
30 | * @var ApiService |
||
31 | */ |
||
32 | private $apiService; |
||
33 | |||
34 | /** |
||
35 | * @param ApiService $apiService |
||
36 | */ |
||
37 | public function __construct(ApiService $apiService) |
||
41 | |||
42 | /** |
||
43 | * @param ProfileSearchQuery $query |
||
44 | * @return null|array |
||
45 | * @throws AccessDeniedToResourceException When the consumer isn't authorised to access given resource. |
||
46 | * @throws ResourceReadException When the server doesn't respond with the resource. |
||
47 | * @throws MalformedResponseException When the server doesn't respond with (well-formed) JSON. |
||
48 | */ |
||
49 | public function get(ProfileSearchQuery $query) |
||
53 | } |
||
54 |