1 | <?php |
||
22 | abstract class Quantifier extends Specification implements QuantifierInterface |
||
23 | { |
||
24 | /** |
||
25 | * @var SelectorInterface |
||
26 | */ |
||
27 | protected $selector; |
||
28 | |||
29 | /** |
||
30 | * @var SpecificationInterface |
||
31 | */ |
||
32 | protected $specification; |
||
33 | |||
34 | /** |
||
35 | * @param SelectorInterface $selector |
||
36 | * @param SpecificationInterface $specification |
||
37 | */ |
||
38 | public function __construct(SelectorInterface $selector, SpecificationInterface $specification) |
||
43 | |||
44 | /** |
||
45 | * @return \Cubiche\Core\Selector\SelectorInterface |
||
46 | */ |
||
47 | public function selector() |
||
51 | |||
52 | /** |
||
53 | * @return \Cubiche\Core\Specification\SpecificationInterface |
||
54 | */ |
||
55 | public function specification() |
||
59 | |||
60 | /** |
||
61 | * @param mixed $value |
||
62 | * |
||
63 | * @return Generator |
||
64 | */ |
||
65 | protected function evaluationIterator($value) |
||
76 | } |
||
77 |