1 | <?php |
||
25 | final class InstitutionCollection |
||
26 | { |
||
27 | /** |
||
28 | * @var InstitutionRole[] |
||
29 | */ |
||
30 | private $institutions = []; |
||
31 | |||
32 | /** |
||
33 | * @param Institution $institution |
||
34 | */ |
||
35 | public function set(Institution $institution) |
||
39 | |||
40 | /** |
||
41 | * @param Institutions $institutions |
||
42 | */ |
||
43 | public function update(Institutions $institutions) |
||
49 | |||
50 | /** |
||
51 | * @param Institution $institution |
||
52 | * @return Institution |
||
|
|||
53 | */ |
||
54 | public function get(Institution $institution) |
||
58 | |||
59 | /** |
||
60 | * @param Institution $institution |
||
61 | * @return Institution |
||
62 | */ |
||
63 | public function exists(Institution $institution) |
||
67 | |||
68 | /** |
||
69 | * @param Institution $institution |
||
70 | */ |
||
71 | public function remove(Institution $institution) |
||
75 | |||
76 | /** |
||
77 | * @return int |
||
78 | */ |
||
79 | public function count() |
||
83 | } |
||
84 |
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.