1 | <?php |
||
23 | final class AllowedSecondFactorMap |
||
24 | { |
||
25 | /** |
||
26 | * @var SecondFactorType |
||
27 | */ |
||
28 | private $allowedSecondFactorsPerInstitution = []; |
||
29 | |||
30 | private function __construct(array $institutions) |
||
36 | |||
37 | /** |
||
38 | * @param Institution[] $institutions |
||
39 | * @return AllowedSecondFactorMap |
||
40 | */ |
||
41 | public static function mappedTo($institutions) |
||
45 | |||
46 | /** |
||
47 | * @param Institution $institution |
||
48 | * @param SecondFactorType $secondFactorType |
||
49 | */ |
||
50 | public function institutionAllows(Institution $institution, SecondFactorType $secondFactorType) |
||
54 | |||
55 | /** |
||
56 | * @param Institution $institution |
||
57 | * @return AllowedSecondFactorList |
||
58 | */ |
||
59 | public function getSecondFactorListFor(Institution $institution) |
||
65 | |||
66 | private function initializeWith(Institution $institution) |
||
70 | } |
||
71 |