| 1 | <?php |
||
| 2 | class RoleAPI extends VolunteerAPI |
||
| 3 | { |
||
| 4 | use Processor; |
||
| 5 | |||
| 6 | public function __construct() |
||
| 10 | |||
| 11 | protected function canEditDept($request, $deptId) |
||
| 19 | |||
| 20 | protected function canUpdate($request, $entity) |
||
| 24 | |||
| 25 | protected function canDelete($request, $entity) |
||
| 29 | |||
| 30 | protected function processEntry($entry, $request) |
||
| 34 | } |
||
| 35 |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: