| 1 | <?php |
||
| 20 | final class SimpleMatcher implements Matcher |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * @var string |
||
| 24 | */ |
||
| 25 | private $subject; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @param string $subject The subject to match against |
||
| 29 | * @throws \InvalidArgumentException |
||
| 30 | */ |
||
| 31 | public function __construct($subject) |
||
| 39 | |||
| 40 | /** |
||
| 41 | * {@inheritdoc} |
||
| 42 | */ |
||
| 43 | public function getSubject() |
||
| 47 | |||
| 48 | /** |
||
| 49 | * {@inheritdoc} |
||
| 50 | */ |
||
| 51 | public function matches(Pattern $pattern) |
||
| 55 | } |
||
| 56 |