$b) { $foo->bar($arg1); } else { BazClass::bar($arg2, $arg3); } static::baz(); } final public static function bar() { // method body } } class Aaa implements Bbb, Ccc, Ddd { } $a = new Foo(); $b = (bool) 1; $c = true ? (int) '1' : 2; function callback($a, ... $b) { return (--$a) * ($b++); }