Created
September 3, 2018 09:09
-
-
Save MartijnBraam/c9667f9007aa3d2e482c95788a9bd3ef to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class BrixITEmployee { | |
| public static $number = "0592 20 10 74"; | |
| public static $email = "martijn@brixit.nl"; | |
| public static $requirements = [ | |
| "programming::php", | |
| "programming::html", | |
| "programming::css", | |
| ]; | |
| public function filterJob(Applicant $applicant){ | |
| foreach($this->requirements as $requirement){ | |
| if(!$applicant->hasRequirement($requirement){ | |
| return False; | |
| } | |
| } | |
| if($applicant->hasPhone()){ | |
| $applicant->call($this->number); | |
| }else{ | |
| $applicant->mail($this->email, "My application"); | |
| } | |
| return True; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment