Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace Vendor\Package;
- use FooInterface;
- use BarClass as Bar;
- use OtherVendor\OtherPackage\BazClass;
- class Foo extends Bar implements FooInterface
- {
- public function sampleMethod($a, $b = null)
- {
- if ($a === $b) {
- bar();
- } elseif ($a > $b) {
- $foo->bar($arg1);
- } else {
- BazClass::bar($arg2, $arg3);
- }
- }
- final public static function bar()
- {
- // method body
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement