@@ -1,6 +1,9 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | trait Processor |
| 3 | 3 | { |
| 4 | + /** |
|
| 5 | + * @param string $certType |
|
| 6 | + */ |
|
| 4 | 7 | protected function certCheck($requirements, $certs, $certType) |
| 5 | 8 | { |
| 6 | 9 | if(isset($requirements[$certType]) && $requirements[$certType]) |
@@ -12,6 +15,9 @@ discard block |
||
| 12 | 15 | |
| 13 | 16 | protected abstract function isVolunteerAdmin($request); |
| 14 | 17 | |
| 18 | + /** |
|
| 19 | + * @param VolunteerProfile|null $user |
|
| 20 | + */ |
|
| 15 | 21 | public function canUserDoRole($user, $role) |
| 16 | 22 | { |
| 17 | 23 | if($role['publicly_visible'] === true) |
@@ -152,6 +158,9 @@ discard block |
||
| 152 | 158 | return !in_array($deptId, $privateDepts); |
| 153 | 159 | } |
| 154 | 160 | |
| 161 | + /** |
|
| 162 | + * @param VolunteerShift $shift |
|
| 163 | + */ |
|
| 155 | 164 | protected function doShiftTimeChecks($shift, $entry) |
| 156 | 165 | { |
| 157 | 166 | $now = new DateTime(); |