1 | <?php |
||
27 | class RaLocationService |
||
28 | { |
||
29 | /** |
||
30 | * @var RaLocationRepository |
||
31 | */ |
||
32 | private $repository; |
||
33 | |||
34 | public function __construct(RaLocationRepository $repository) |
||
38 | |||
39 | /** |
||
40 | * @param RaLocationQuery $query |
||
41 | * @return null|RaLocation[] |
||
42 | */ |
||
43 | public function search(RaLocationQuery $query) |
||
47 | |||
48 | /** |
||
49 | * @param RaLocationId $raLocationId |
||
50 | * @return RaLocation[] |
||
51 | */ |
||
52 | public function findByRaLocationId(RaLocationId $raLocationId) |
||
56 | |||
57 | |||
58 | /** |
||
59 | * @param Institution $institution |
||
60 | * @return RaLocation[] |
||
61 | */ |
||
62 | public function listRaLocationsFor(Institution $institution) |
||
66 | } |
||
67 |