1 | <?php |
||
23 | class AuthorizedInstitutionCollection |
||
24 | { |
||
25 | /** |
||
26 | * Mapped on institution, a list of authorizations for the institution relation |
||
27 | * |
||
28 | * @example |
||
29 | * [ |
||
30 | * 'institution-1' => [use_ra, use_raa, select_raa], |
||
31 | * 'institution-2' => [use_ra], |
||
32 | * 'institution-3' => [select_raa], |
||
33 | * ] |
||
34 | * |
||
35 | * @var AuthorityRole[] |
||
36 | */ |
||
37 | private $authorizations = []; |
||
38 | |||
39 | /** |
||
40 | * @param RaListing[] $authorizations |
||
41 | * @return AuthorizedInstitutionCollection |
||
42 | */ |
||
43 | public static function fromInstitutionAuthorization($authorizations) |
||
52 | |||
53 | public function getAuthorizations() |
||
57 | } |
||
58 |