1 | <?php |
||
8 | class Matcher |
||
9 | { |
||
10 | /** |
||
11 | * @var ExpressionInterface |
||
12 | */ |
||
13 | protected $expression; |
||
14 | |||
15 | /** |
||
16 | * Construct a Matcher instance. |
||
17 | * |
||
18 | * @param ExpressionInterface $expression |
||
19 | */ |
||
20 | 4 | public function __construct(ExpressionInterface $expression) |
|
25 | |||
26 | /** |
||
27 | * Check if a document matches the expression. |
||
28 | * |
||
29 | * @param DocumentInterface $document |
||
30 | * @return mixed |
||
31 | */ |
||
32 | 1 | public function match(DocumentInterface $document) |
|
36 | } |
||
37 |