Dingo\Api\Exception\Handler::handlerHint PHP Method

handlerHint() protected method

Get the hint for an exception handler.
protected handlerHint ( callable $callback ) : string
$callback callable
return string
    protected function handlerHint(callable $callback)
    {
        $reflection = new ReflectionFunction($callback);
        $exception = $reflection->getParameters()[0];
        return $exception->getClass()->getName();
    }