1 | <?php |
||
7 | class AbstractMatcher |
||
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 $repository; |
||
17 | |||
18 | /** |
||
19 | * @param Repository $repository |
||
20 | * @todo inject the services needed, not the whole repository |
||
21 | */ |
||
22 | public function __construct(Repository $repository) |
||
26 | |||
27 | protected function validateConditions(array $conditions) |
||
44 | } |
||
45 |