public function afterMatch($callback = null)
        {
            if ($callback !== null) {
                if (!is_callable($callback)) {
                    throw new InvalidArgumentException(
                        sprintf(
                            "The after match callback provided is not valid. Given (%s)",
                            gettype($callback)
                        )
                    );
                }

                $this->afterMatchCallback = $callback;

                return $this;
            }

            return $this->afterMatchCallback;
        }
public function afterMatch($callback = null)
        {
            if ($callback !== null) {
                if (!is_callable($callback)) {
                    throw new InvalidArgumentException(
                        sprintf(
                            "The after match callback provided is not valid. Given (%s)",
                            gettype($callback)
                        )
                    );
                }

                $this->afterMatchCallback = $callback;

                return $this;
            }

            return $this->afterMatchCallback;
        }
public function afterMatch ( $ callback = null ) { if ( $ callback !== null ) { if ( ! is_callable ( $ callback ) ) { throw new InvalidArgumentException ( sprintf ( "The after match callback provided is not valid. Given (%s)" , gettype ( $ callback ) ) ) ; } $ this -> afterMatchCallback = $ callback ; return $ this ; } return $ this -> afterMatchCallback ; }
After match callback

@param callback $callback Callback function to be used to modify params after a successful match
@throws InvalidArgumentException When supplied argument is not a valid callback
@return callback
After match callback