1 | <?php |
||
25 | class InstitutionConfigurationOptionsService |
||
26 | { |
||
27 | /** |
||
28 | * @var InstitutionConfigurationOptionsRepository |
||
29 | */ |
||
30 | private $repository; |
||
31 | |||
32 | /** |
||
33 | * @var int |
||
34 | */ |
||
35 | private $numberOfTokensPerIdentity; |
||
36 | |||
37 | /** |
||
38 | * @param InstitutionConfigurationOptionsRepository $repository |
||
39 | * @param int $numberOfTokensPerIdentity |
||
40 | */ |
||
41 | public function __construct( |
||
48 | |||
49 | /** |
||
50 | * @return InstitutionConfigurationOptions[] |
||
51 | */ |
||
52 | public function findAllInstitutionConfigurationOptions() |
||
56 | |||
57 | /** |
||
58 | * @param Institution $institution |
||
59 | * @return InstitutionConfigurationOptions |
||
60 | */ |
||
61 | public function findInstitutionConfigurationOptionsFor(Institution $institution) |
||
65 | |||
66 | /** |
||
67 | * Retrieve the number of tokens an identity is allowed to register/vet for a given institution. |
||
68 | * |
||
69 | * When the DISABLED value is set on the institution (when no specific configuration was pushed) the application |
||
70 | * default is returned. |
||
71 | * |
||
72 | * @param Institution $institution |
||
73 | * @return int |
||
74 | */ |
||
75 | public function getMaxNumberOfTokensFor(Institution $institution) |
||
86 | } |
||
87 |