If you ever need to get the type hint of a parameter in a method use this.<?php//Target our class$reflector = new ReflectionClass('MyClass');//Get the parameters of a method$parameters = $reflector->getMethod('FireCannon')->getParameters();//Loop through each parameter and get the typeforeach($parameters as $param){ //Before you call getClass() that class must be defined! echo $param->getClass()->name;}?>