public function sayHello(namespace\SomeOtherClass $class, $ref) { echo 'hello world'; $x = new OtherClass(); $y = $x; $y->hello(); OtherClass::world(); $y::world(); }
function fow(OtherClass $otherClass) { $otherClass->world(); }