1 | <?php |
||
24 | class RaListingService |
||
25 | { |
||
26 | /** |
||
27 | * @var ApiService |
||
28 | */ |
||
29 | private $apiService; |
||
30 | |||
31 | /** |
||
32 | * @param ApiService $apiService |
||
33 | */ |
||
34 | public function __construct(ApiService $apiService) |
||
38 | |||
39 | /** |
||
40 | * @param string $id The RA's identity ID. |
||
41 | * @return null|array |
||
42 | * @throws AccessDeniedToResourceException When the consumer isn't authorised to access given resource. |
||
43 | * @throws ResourceReadException When the server doesn't respond with the resource. |
||
44 | * @throws MalformedResponseException When the server doesn't respond with (well-formed) JSON. |
||
45 | */ |
||
46 | public function get($id) |
||
50 | |||
51 | /** |
||
52 | * @param RaListingSearchQuery $searchQuery |
||
53 | * @return mixed|null |
||
54 | */ |
||
55 | public function search(RaListingSearchQuery $searchQuery) |
||
59 | } |
||
60 |