Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.48 KB | None | 0 0
  1. <?php
  2. namespace Vendor\Package;
  3.  
  4. use FooInterface;
  5. use BarClass as Bar;
  6. use OtherVendor\OtherPackage\BazClass;
  7.  
  8. class Foo extends Bar implements FooInterface
  9. {
  10.     public function sampleMethod($a, $b = null)
  11.     {
  12.         if ($a === $b) {
  13.             bar();
  14.         } elseif ($a > $b) {
  15.             $foo->bar($arg1);
  16.         } else {
  17.             BazClass::bar($arg2, $arg3);
  18.         }
  19.     }
  20.  
  21.     final public static function bar()
  22.     {
  23.         // method body
  24.     }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement