Advertisement
Guest User

Untitled

a guest
Mar 4th, 2015
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. <?php
  2. error_reporting(E_ALL);
  3. ini_set('display_errors', '1');
  4.  
  5. include_once('IRobot.php');
  6. class DarkBot implements IRobot
  7. {
  8. $protocol = IRobot::MODEL1;
  9. $astro = IRobot::MODEL2;
  10. $terminate = IRobot::MODEL3;
  11.  
  12. public function helpHuman()
  13. {
  14. return "$protocol: 'Oh dear, I am Afraid I cannot help Humans!' <br>";
  15. }
  16.  
  17. public function kill()
  18. {
  19. return "$terminate: 'I would rather kill the humans!' <br> ";
  20. }
  21.  
  22. public function translate()
  23. {
  24. return "$astro: 'Beep-boop' *with fire spitting from him*";
  25. }
  26. }
  27. $test = new DarkBot();
  28. echo test->helpHuman();
  29. echo test->kill();
  30. echo test->translate();
  31. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement