Dingo\Api\Exception\Handler::handlerHint PHP Méthode

handlerHint() protected méthode

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