Jambix64

Naelson Gonçalves Saraiva

Jun 11th, 2021 (edited)
270
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. namespace MyABSInterface;
  3. interface template
  4. {
  5.     public function getVideo($type);
  6. }
  7. namespace MyABS;
  8. use MyABSInterface;
  9. class Abstracted implements \MyABSInterface\template
  10. {
  11.     public function getVideo($type)
  12.     {
  13.         switch ($type)
  14.         {
  15.             case 'mp3':
  16.                 echo "mp3";
  17.             break;
  18.             case 'mp4':
  19.                 echo "mp4";
  20.             break;
  21.         }
  22.     }
  23. }
  24. namespace MyVoice;
  25. use MyABS;
  26. class VoidChat extends \MyABS\Abstracted
  27. {
  28.     function __construct()
  29.     {
  30.         $this->showVoice();
  31.     }
  32.     private function showVoice()
  33.     {
  34.         $this->getVideo("mp3");
  35.     }
  36. }
  37.  
  38. namespace display;
  39. use MyVoice;
  40. class Showlive extends \MyVoice\VoidChat
  41. {
  42.     function __construct()
  43.     {
  44.         new \MyVoice\VoidChat();
  45.         $this->showVideo();
  46.     }
  47.     public function showVideo()
  48.     {
  49.         $this->getVideo("mp4");
  50.         return $this;
  51.     }
  52.     public function showVoice()
  53.     {
  54.         echo "OLA GELERA!";
  55.     }
  56. }
  57. ?>
  58.  
  59. <?php
  60. use display;
  61. $callSpeak = new \display\Showlive();
  62. $callSpeak->showVoice();
  63.  
RAW Paste Data