@PSR2.test-out.php 641 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. namespace Vendor\Package;
  3. use FooInterfaceA;
  4. use FooInterfaceB;
  5. use BarClass as Bar;
  6. use OtherVendor\OtherPackage\BazClass;
  7. class Foo extends Bar implements FooInterfaceA
  8. {
  9. const SOME_CONST = 42;
  10. public $aaa = 1;
  11. public $bbb = 2;
  12. public function sampleFunction($a, $arg1, $arg2, $arg3, $foo, $b = null)
  13. {
  14. if ($a === $b) {
  15. bar();
  16. } elseif ($a > $b) {
  17. $foo->bar($arg1);
  18. } else {
  19. BazClass::bar($arg2, $arg3);
  20. }
  21. }
  22. final public static function bar()
  23. {
  24. // method body
  25. }
  26. }
  27. class Aaa implements
  28. Bbb,
  29. Ccc,
  30. Ddd
  31. {
  32. }