protected function getParamType(\ReflectionClass $class, \ReflectionParameter $param): string
    {
        $this->assertType($class->getName(), $param->getName(), $param->getType());

        return $param->getType()->getName();
    }
protected function getParamType(\ReflectionClass $class, \ReflectionParameter $param): string
    {
        $this->assertType($class->getName(), $param->getName(), $param->getType());

        return $param->getType()->getName();
    }
protected function getParamType ( \ ReflectionClass $ class , \ ReflectionParameter $ param ) : string { $ this -> assertType ( $ class -> getName ( ) , $ param -> getName ( ) , $ param -> getType ( ) ) ; return $ param -> getType ( ) -> getName ( ) ; }
Get the declared type of a parameter.

@param \ReflectionClass     $class
@param \ReflectionParameter $param
@return string
Get the declared type of a parameter .