| 1 | <?php |
||
| 7 | final class ChainMatcher extends Matcher |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var array|ValueMatcher[] |
||
| 11 | */ |
||
| 12 | private $matchers; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @param array|ValueMatcher[] $matchers |
||
| 16 | */ |
||
| 17 | public function __construct(array $matchers = array()) |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @param ValueMatcher $matcher |
||
| 24 | */ |
||
| 25 | public function addMatcher(ValueMatcher $matcher) |
||
| 29 | |||
| 30 | /** |
||
| 31 | * {@inheritDoc} |
||
| 32 | */ |
||
| 33 | public function match($value, $pattern) |
||
| 55 | |||
| 56 | /** |
||
| 57 | * {@inheritDoc} |
||
| 58 | */ |
||
| 59 | public function canMatch($pattern) |
||
| 63 | } |
||
| 64 |