@PSR2.test-in.php 622 B

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