src/Dispatcher/ClosureAutoBind.php
public function setNotFoundHandler($handler) : ClosureAutoBind
    {
        if (!$this->isClosure($handler)) {
            throw new InvalidArgumentException(
                'Handler must be closure'
            );
        }

        $this->notFoundHandler = $handler;

        return $this;
    }
public function setNotFoundHandler($handler) : ClosureAutoBind
    {
        if (!$this->isClosure($handler)) {
            throw new InvalidArgumentException(
                'Handler must be closure'
            );
        }

        $this->notFoundHandler = $handler;

        return $this;
    }
public function setNotFoundHandler ( $ handler ) : ClosureAutoBind { if ( ! $ this -> isClosure ( $ handler ) ) { throw new InvalidArgumentException ( 'Handler must be closure' ) ; } $ this -> notFoundHandler = $ handler ; return $ this ; }
Sets not found handler

@param Closure $handler handler that will be excuted if nothing has been
found

@return self for fluent interface

@throws InvalidArgumentException if the provided value is not closure
Sets not found handler