1 | <?php |
||
12 | final class Not extends CompositeSpecification |
||
13 | { |
||
14 | /** |
||
15 | * @var Specification |
||
16 | */ |
||
17 | private $wrappedSpecification; |
||
18 | |||
19 | /** |
||
20 | * @param Specification $specification |
||
21 | */ |
||
22 | 5 | public function __construct(Specification $specification) |
|
26 | |||
27 | /** |
||
28 | * {inheritdoc} |
||
29 | */ |
||
30 | 3 | public function isSatisfiedBy($candidate): bool |
|
34 | |||
35 | /** |
||
36 | * Get the wrapped specification |
||
37 | * |
||
38 | * @return Specification |
||
39 | */ |
||
40 | 1 | public function getWrappedSpecification(): Specification |
|
44 | } |
||
45 |