getConstructor(); } public function getCtorParams($class) { return ($reflectedCtor = $this->getCtor($class)) ? $reflectedCtor->getParameters() : null; } public function getParamTypeHint(\ReflectionFunctionAbstract $function, \ReflectionParameter $param) { return ($reflectionClass = $param->getClass()) ? $reflectionClass->getName() : null; } public function getFunction($functionName) { return new \ReflectionFunction($functionName); } public function getMethod($classNameOrInstance, $methodName) { $className = is_string($classNameOrInstance) ? $classNameOrInstance : get_class($classNameOrInstance); return new \ReflectionMethod($className, $methodName); } }