SHARE
TWEET

Untitled

a guest Jul 17th, 2019 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. class display {
  4.     public static function error(string $message) {
  5.         ...<render message>...
  6.     }
  7. }
  8.  
  9. ...
  10.  
  11. if ($problem) {
  12.     display::error("Houston, we've got a problem.");
  13. }
  14.      
  15. <?php
  16.  
  17. class display {
  18.     public function error(string $message) {
  19.         ...<render message>...
  20.     }
  21. }
  22.  
  23. ...
  24.  
  25. if ($problem) {
  26.     $d = new display;
  27.     $d->error("Houston, we've got a problem.");
  28. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top