| 1 | <?php |
||
| 5 | abstract class AbstractSpecification implements Specification |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @param $candidate |
||
| 9 | * |
||
| 10 | * @return bool |
||
| 11 | */ |
||
| 12 | abstract public function isSatisfiedBy($candidate); |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @param Specification $other |
||
| 16 | * |
||
| 17 | * @return AndSpecification |
||
| 18 | */ |
||
| 19 | 3 | public function andSatisfies(Specification $other) |
|
| 23 | |||
| 24 | /** |
||
| 25 | * @param Specification $other |
||
| 26 | * |
||
| 27 | * @return OrSpecification |
||
| 28 | */ |
||
| 29 | 3 | public function orSatisfies(Specification $other) |
|
| 33 | |||
| 34 | /** |
||
| 35 | * @return NotSpecification |
||
| 36 | */ |
||
| 37 | 3 | public function not() |
|
| 41 | } |
||
| 42 |