@@ -14,7 +14,7 @@ abstract class CompositeSpecification implements Specification
1414 /**
1515 * @return CompositeSpecification<TCandidate>
1616 */
17- public function not (): self
17+ final public function not (): self
1818 {
1919 return new NotSpecification ($ this );
2020 }
@@ -24,7 +24,7 @@ public function not(): self
2424 *
2525 * @return CompositeSpecification<TCandidate>
2626 */
27- public function or (Specification $ specification ): self
27+ final public function or (Specification $ specification ): self
2828 {
2929 return new OrSpecification ([$ this , $ specification ]);
3030 }
@@ -34,7 +34,7 @@ public function or(Specification $specification): self
3434 *
3535 * @return CompositeSpecification<TCandidate>
3636 */
37- public function orNot (Specification $ specification ): self
37+ final public function orNot (Specification $ specification ): self
3838 {
3939 return $ this ->or (new NotSpecification ($ specification ));
4040 }
@@ -44,7 +44,7 @@ public function orNot(Specification $specification): self
4444 *
4545 * @return CompositeSpecification<TCandidate>
4646 */
47- public function xor (Specification $ specification ): self
47+ final public function xor (Specification $ specification ): self
4848 {
4949 return new XorSpecification ([$ this , $ specification ]);
5050 }
@@ -54,7 +54,7 @@ public function xor(Specification $specification): self
5454 *
5555 * @return CompositeSpecification<TCandidate>
5656 */
57- public function xorNot (Specification $ specification ): self
57+ final public function xorNot (Specification $ specification ): self
5858 {
5959 return $ this ->xor (new NotSpecification ($ specification ));
6060 }
@@ -64,7 +64,7 @@ public function xorNot(Specification $specification): self
6464 *
6565 * @return CompositeSpecification<TCandidate>
6666 */
67- public function and (Specification $ specification ): self
67+ final public function and (Specification $ specification ): self
6868 {
6969 return new AndSpecification ([$ this , $ specification ]);
7070 }
@@ -74,15 +74,15 @@ public function and(Specification $specification): self
7474 *
7575 * @return CompositeSpecification<TCandidate>
7676 */
77- public function andNot (Specification $ specification ): self
77+ final public function andNot (Specification $ specification ): self
7878 {
7979 return $ this ->and (new NotSpecification ($ specification ));
8080 }
8181
8282 /**
8383 * @return CompositeSpecification<TCandidate>
8484 */
85- public function verbose (string $ message = '' ): self
85+ final public function verbose (string $ message = '' ): self
8686 {
8787 return new VerboseSpecification ($ this , $ message );
8888 }
0 commit comments