| 1 | <?php |
||
| 29 | abstract class ComposedSpecification extends AbstractSpecification |
||
| 30 | { |
||
| 31 | private $specification; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * The composed specification. |
||
| 35 | * |
||
| 36 | * @return Specification |
||
| 37 | */ |
||
| 38 | abstract protected function getSpecification(); |
||
| 39 | |||
| 40 | /** |
||
| 41 | * {@inheritdoc} |
||
| 42 | */ |
||
| 43 | public function getRule(): string |
||
| 49 | |||
| 50 | /** |
||
| 51 | * {@inheritdoc} |
||
| 52 | */ |
||
| 53 | public function getParameters(): array |
||
| 59 | |||
| 60 | private function initializeSpecification() |
||
| 68 | } |
||
| 69 |