<?php interface IX {} class X implements IX {} class Y {} function foo(IX $x) {} $rf = new \ReflectionFunction('foo'); $rp = $rf->getParam('x'); $x = new X; var_dump($rp->getType(), $rp->getClass());
You have javascript disabled. You will not be able to edit any code.