コード例 #1
0
 public function sayHello(namespace\SomeOtherClass $class, $ref)
 {
     echo 'hello world';
     $x = new OtherClass();
     $y = $x;
     $y->hello();
     OtherClass::world();
     $y::world();
 }
コード例 #2
0
 function fow(OtherClass $otherClass)
 {
     $otherClass->world();
 }