Advertisement
Guest User

Untitled

a guest
Apr 22nd, 2019
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.70 KB | None | 0 0
  1. <?php
  2.  
  3. /**
  4. *
  5. *                  .                 ......  ... .. ......
  6. *               ..  /@@@%######%%%#(/,.      .#%%##/,.      .....
  7. *                 .    *#((((((((((#%&&@@@@@@@@@#(((((((((((##(*.      ...
  8. *                    .    .*((((((%%(((((((((((((###%%#(((%%#((((((##%/,     ..
  9. *                        ...  ./((((((((((((((#%%%%########%%#(((%#%%(*,,//*    ..
  10. *                          ...   /(((((((((#%%((%#*.        ,#&@%(%*     #,  ..   ..
  11. *                     ...    *#(((((((((((((#.          *%,   ,&.     .@/ .%@(  ,   .
  12. *               ....    ,(#(((((((((((((((((((%        &@&**    %.     (@%(%@&   *   .
  13. *          ..    ./((((((((((((((((((((((((((((#     .%@@( .%#    %&/       ..*#%%#%(  ..
  14. *     ..    ,(#((((((((((((((((((((((((#((((%#(#&/.   /&/,  .*%%%&(((######((((#   ..
  15. *  ..   ,(#((((((((((((#%######&%((((((#&&%((((#####%%%%%%%####((((((#&(((((((((((%#.  .
  16. * .   #(((((((((((((#%(((%&&%##(##%&%#(((((((((((((((((((((((((((((((((((#((((((###*    .
  17. * .  /((((((((((((((###&%#%%&&%##(#(##%%%##(((((((((((((((((((((((((((((####(*    ..
  18. * .   #(((((((((((((((#(#%&&%%%%%%%%%&%%%#########################(//%&%#(##&.  .
  19. * ..   #((((((((((((((#&%######%#*,,,*(%&&%%#%%%%%%%%%%%%%&@/,,,,,,,,,*(###(*   ..
  20. *   ..   *##((((((((((((((#%&&%##(##(##%%%%%&&&&&&&@%(///(((#######%&%/     ..
  21. *      ..   .(%#(((((((((((((((((#%%&&&%%%%##########%%%%%%%####(,     ...
  22. *          ..     .*(#%%%###((((((((((((((((((###%####(/,.       ..
  23. *                 ......                          .......
  24. *
  25. */
  26.  
  27. class Relationships {
  28.  
  29.   /*
  30.   *
  31.   * @var int $rating An arbitrary of saying
  32.   *                  you suck dick.
  33.   *
  34.   */
  35.  
  36.   protected $rating;
  37.  
  38.   /*
  39.   *
  40.   * @param array $person1
  41.   * @param array $person2
  42.   *
  43.   */
  44.   public function match($person1, $person2) {
  45.     if ($person1['rating'] >= $person2['rating'])
  46.     {
  47.       $this->sex($person2);
  48.     }
  49.     else
  50.     {
  51.       $this->friendzone($person1, $person2);
  52.     }
  53.   }
  54.  
  55.   /*
  56.   *
  57.   * @param array $person
  58.   *
  59.   */
  60.   private function sex($person) {
  61.     echo "Congrats, you just banged " . $person['name'] . ".";
  62.   }
  63.  
  64.   /*
  65.   *
  66.   * @param array $person1
  67.   * @param array $person2
  68.   *
  69.   */
  70.   protected function friendzone($person1, $person2)
  71.   {
  72.     $rating = $person1['rating'] + 2;
  73.  
  74.     if ($rating < $person2['rating'])
  75.     {
  76.       echo $person1['name'] . " made it to the friendzone! Pog!";
  77.     }
  78.     else
  79.     {
  80.       return;
  81.     }
  82.   }
  83. }
  84.  
  85. $relationship = new Relationships();
  86.  
  87. $tessie = [
  88.   'name' => 'Tessie',
  89.   'age' => 22,
  90.   'height' => 71,
  91.   'rating' => 3,
  92. ];
  93.  
  94. $kate = [
  95.   'name' => 'Kate',
  96.   'age' => 22,
  97.   'height' => 69,
  98.   'rating' => 8,
  99. ];
  100.  
  101. $relationship->match($tessie, $kate);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement