public function jumpBelow(Text $text, $pattern, $location = null)
    {
        $searchStrategy = $this->searchEngine->resolve($pattern);
        $foundLineNumber = $searchStrategy->findBelow($text, $pattern, $location);
        if (false === $foundLineNumber) {
            throw new PatternNotFoundException($pattern, $text);
        }

        $text->setCurrentLineNumber($foundLineNumber);
    }
public function jumpBelow(Text $text, $pattern, $location = null)
    {
        $searchStrategy = $this->searchEngine->resolve($pattern);
        $foundLineNumber = $searchStrategy->findBelow($text, $pattern, $location);
        if (false === $foundLineNumber) {
            throw new PatternNotFoundException($pattern, $text);
        }

        $text->setCurrentLineNumber($foundLineNumber);
    }
public function jumpBelow ( Text $ text , $ pattern , $ location = null ) { $ searchStrategy = $ this -> searchEngine -> resolve ( $ pattern ) ; $ foundLineNumber = $ searchStrategy -> findBelow ( $ text , $ pattern , $ location ) ; if ( false === $ foundLineNumber ) { throw new PatternNotFoundException ( $ pattern , $ text ) ; } $ text -> setCurrentLineNumber ( $ foundLineNumber ) ; }
Searches the given pattern in the Text below the current line.
If the pattern is found, the current line is set to it.

@param Text  $text
@param mixed $pattern
@param int   $location

@throws PatternNotFoundException                          If the pattern hasn't been found
@throws \Gnugat\Redaktilo\Exception\NotSupportedException If the given pattern isn't supported by any registered strategy

@api
Searches the given pattern in the Text below the current line . If the pattern is found the current line is set to it .