1 | <?php |
||
22 | final class WhereFilter extends ClassIterator implements Filter |
||
23 | { |
||
24 | use FilterTrait; |
||
25 | |||
26 | /** |
||
27 | * @var string Name of ReflectionClass method to evaluate |
||
28 | */ |
||
29 | private $methodName; |
||
30 | |||
31 | /** |
||
32 | * @var mixed Expected return value |
||
33 | */ |
||
34 | private $returnValue; |
||
35 | |||
36 | /** |
||
37 | * Register method name and expected return value |
||
38 | * |
||
39 | * @param string $methodName Name of ReflectionClass method to evaluate |
||
40 | * @param mixed $returnValue Expected return value |
||
41 | */ |
||
42 | public function __construct($methodName, $returnValue = true) |
||
48 | |||
49 | public function getIterator(): iterable |
||
58 | } |
||
59 |