| 1 | <?php |
||
| 7 | abstract class AbstractMatcher implements MatcherInterface |
||
| 8 | { |
||
| 9 | /** @var string[] $allowedConditions the keywords we allow to be used for matching on*/ |
||
| 10 | protected $allowedConditions = array(); |
||
| 11 | /** @var string $returns user-readable name of the type of object returned */ |
||
| 12 | protected $returns; |
||
| 13 | /** @var int $maxConditions the maximum number of conditions we allow to match on for a single match request */ |
||
| 14 | protected $maxConditions = 1; |
||
| 15 | |||
| 16 | protected function validateConditions(array $conditions) |
||
| 33 | |||
| 34 | 3 | public function matchOne(array $conditions) |
|
| 43 | 3 | ||
| 44 | 3 | abstract public function match(array $conditions); |
|
| 45 | } |
||
| 46 |