| 1 | <?php namespace JobApis\JobsToMail\Filters; |
||
| 7 | class RecruiterFilter |
||
| 8 | { |
||
| 9 | 3 | public function __construct(Recruiter $recruiter) |
|
| 13 | |||
| 14 | /** |
||
| 15 | * Filters out jobs from recruiting companies if the user prefers it. |
||
| 16 | * |
||
| 17 | * @param array $jobs |
||
| 18 | * @param Search $search |
||
| 19 | * |
||
| 20 | * @return array |
||
| 21 | */ |
||
| 22 | public function filter(array $jobs, Search $search) |
||
| 39 | } |
||
| 40 |
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: