src/main/php/routing/Route.php
public function postIntercept($postInterceptor): ConfigurableRoute
    {
        if (!is_callable($postInterceptor) && !($postInterceptor instanceof PostInterceptor) && !class_exists((string) $postInterceptor)) {
            throw new \InvalidArgumentException(
                    'Given pre interceptor must be a callable, an instance of '
                    . PostInterceptor::class
                    . ' or a class name of an existing post interceptor class'
            );
        }

        $this->postInterceptors[] = $postInterceptor;
        return $this;
    }
public function postIntercept($postInterceptor): ConfigurableRoute
    {
        if (!is_callable($postInterceptor) && !($postInterceptor instanceof PostInterceptor) && !class_exists((string) $postInterceptor)) {
            throw new \InvalidArgumentException(
                    'Given pre interceptor must be a callable, an instance of '
                    . PostInterceptor::class
                    . ' or a class name of an existing post interceptor class'
            );
        }

        $this->postInterceptors[] = $postInterceptor;
        return $this;
    }
public function postIntercept ( $ postInterceptor ) : ConfigurableRoute { if ( ! is_callable ( $ postInterceptor ) && ! ( $ postInterceptor instanceof PostInterceptor ) && ! class_exists ( ( string ) $ postInterceptor ) ) { throw new \ InvalidArgumentException ( 'Given pre interceptor must be a callable, an instance of ' . PostInterceptor :: class . ' or a class name of an existing post interceptor class' ) ; } $ this -> postInterceptors [ ] = $ postInterceptor ; return $ this ; }
add a post interceptor for this route

@param   string|callable|\stubbles\webapp\interceptor\PostInterceptor  $postInterceptor
@return  \stubbles\webapp\routing\Route
@throws  \InvalidArgumentException
add a post interceptor for this route