| 1 | <?php |
||
| 18 | class PropertyPredicateFactory { |
||
| 19 | /** |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | protected $name; |
||
| 23 | |||
| 24 | 35 | public function __construct($name) { |
|
| 28 | |||
| 29 | /** |
||
| 30 | * Is true when the property matches the given regex. |
||
| 31 | * |
||
| 32 | * @param Regexp $regex |
||
| 33 | * @return Predicate |
||
| 34 | */ |
||
| 35 | 29 | public function _matches(Regexp $regex) { |
|
| 38 | |||
| 39 | /** |
||
| 40 | * Is true when the property equals the given value. |
||
| 41 | * |
||
| 42 | * @param string $value |
||
| 43 | * @return Predicate |
||
| 44 | */ |
||
| 45 | 6 | public function _equals($value) { |
|
| 48 | } |
||
| 49 |