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