PHP Class Relax\Greppy\SimpleMatcher

Author: Daniel Ribeiro ([email protected])
Inheritance: implements Relax\Greppy\Matcher
Show file Open project: relaxphp/greppy

Public Methods

Method Description
__construct ( string $subject )
getSubject ( )
matches ( Relax\Greppy\Pattern $pattern )

Method Details

__construct() public method

public __construct ( string $subject )
$subject string The subject to match against

getSubject() public method

public getSubject ( )

matches() public method

public matches ( Relax\Greppy\Pattern $pattern )
$pattern Relax\Greppy\Pattern