Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * . ...... ... .. ......
- * .. /@@@%######%%%#(/,. .#%%##/,. .....
- * . *#((((((((((#%&&@@@@@@@@@#(((((((((((##(*. ...
- * . .*((((((%%(((((((((((((###%%#(((%%#((((((##%/, ..
- * ... ./((((((((((((((#%%%%########%%#(((%#%%(*,,//* ..
- * ... /(((((((((#%%((%#*. ,#&@%(%* #, .. ..
- * ... *#(((((((((((((#. *%, ,&. .@/ .%@( , .
- * .... ,(#(((((((((((((((((((% &@&** %. (@%(%@& * .
- * .. ./((((((((((((((((((((((((((((# .%@@( .%# %&/ ..*#%%#%( ..
- * .. ,(#((((((((((((((((((((((((#((((%#(#&/. /&/, .*%%%&(((######((((# ..
- * .. ,(#((((((((((((#%######&%((((((#&&%((((#####%%%%%%%####((((((#&(((((((((((%#. .
- * . #(((((((((((((#%(((%&&%##(##%&%#(((((((((((((((((((((((((((((((((((#((((((###* .
- * . /((((((((((((((###&%#%%&&%##(#(##%%%##(((((((((((((((((((((((((((((####(* ..
- * . #(((((((((((((((#(#%&&%%%%%%%%%&%%%#########################(//%&%#(##&. .
- * .. #((((((((((((((#&%######%#*,,,*(%&&%%#%%%%%%%%%%%%%&@/,,,,,,,,,*(###(* ..
- * .. *##((((((((((((((#%&&%##(##(##%%%%%&&&&&&&@%(///(((#######%&%/ ..
- * .. .(%#(((((((((((((((((#%%&&&%%%%##########%%%%%%%####(, ...
- * .. .*(#%%%###((((((((((((((((((###%####(/,. ..
- * ...... .......
- *
- */
- class Relationships {
- /*
- *
- * @var int $rating An arbitrary of saying
- * you suck dick.
- *
- */
- protected $rating;
- /*
- *
- * @param array $person1
- * @param array $person2
- *
- */
- public function match($person1, $person2) {
- if ($person1['rating'] >= $person2['rating'])
- {
- $this->sex($person2);
- }
- else
- {
- $this->friendzone($person1, $person2);
- }
- }
- /*
- *
- * @param array $person
- *
- */
- private function sex($person) {
- echo "Congrats, you just banged " . $person['name'] . ".";
- }
- /*
- *
- * @param array $person1
- * @param array $person2
- *
- */
- protected function friendzone($person1, $person2)
- {
- $rating = $person1['rating'] + 2;
- if ($rating < $person2['rating'])
- {
- echo $person1['name'] . " made it to the friendzone! Pog!";
- }
- else
- {
- return;
- }
- }
- }
- $relationship = new Relationships();
- $tessie = [
- 'name' => 'Tessie',
- 'age' => 22,
- 'height' => 71,
- 'rating' => 3,
- ];
- $kate = [
- 'name' => 'Kate',
- 'age' => 22,
- 'height' => 69,
- 'rating' => 8,
- ];
- $relationship->match($tessie, $kate);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement