@@ -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]) |
@@ -10,6 +13,9 @@ discard block |
||
| 10 | 13 | return false; |
| 11 | 14 | } |
| 12 | 15 | |
| 16 | + /** |
|
| 17 | + * @param VolunteerProfile|null $user |
|
| 18 | + */ |
|
| 13 | 19 | public function canUserDoRole($user, $role) |
| 14 | 20 | { |
| 15 | 21 | if($role['publicly_visible'] === true) |
@@ -124,6 +130,9 @@ discard block |
||
| 124 | 130 | return !in_array($deptId, $privateDepts); |
| 125 | 131 | } |
| 126 | 132 | |
| 133 | + /** |
|
| 134 | + * @param VolunteerShift $shift |
|
| 135 | + */ |
|
| 127 | 136 | protected function doShiftTimeChecks($shift, $entry) |
| 128 | 137 | { |
| 129 | 138 | $now = new DateTime(); |