| 1 | <?php |
||
| 8 | abstract class AbstractSpecification implements Specification |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Create a conjunction with the current specification and another one. |
||
| 12 | * |
||
| 13 | * @param Specification $spec The other specification. |
||
| 14 | * |
||
| 15 | * @return Specification |
||
| 16 | */ |
||
| 17 | public function andX(Specification $spec) |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Create a disjunction with the current specification and another one. |
||
| 24 | * |
||
| 25 | * @param Specification $spec The other specification. |
||
| 26 | * |
||
| 27 | * @return Specification |
||
| 28 | */ |
||
| 29 | public function orX(Specification $spec) |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Negate the current specification. |
||
| 36 | * |
||
| 37 | * @return Specification |
||
| 38 | */ |
||
| 39 | public function not() |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @inheritDoc |
||
| 46 | */ |
||
| 47 | public function getParameters() |
||
| 51 | } |
||
| 52 |