I\'m using type hinting on my constructor parameter list like so:
public function __construct(FooRepository $repository)
Is there a way to
Are you trying to get the hinted type, or the actual type? I can't see why you could want to get the hinted type, as you know it is 'FooRepository' or PHP would have raised an error.
You can get the actual type via get_class and you can also find out if a object inherits from a given class with ReflectionClass::isSubclassOf.