| Total Complexity | 6 |
| Total Lines | 47 |
| Duplicated Lines | 0 % |
| Coverage | 54.55% |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | final class Trashed implements ComparatorInterface |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * {@inheritdoc} |
||
| 17 | */ |
||
| 18 | 1 | public function property(): string |
|
| 19 | { |
||
| 20 | 1 | return 'trashed'; |
|
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * {@inheritdoc} |
||
| 25 | */ |
||
| 26 | 1 | public function sign(): string |
|
| 27 | { |
||
| 28 | 1 | return '='; |
|
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * {@inheritdoc} |
||
| 33 | */ |
||
| 34 | 1 | public function value() |
|
| 35 | { |
||
| 36 | 1 | return true; |
|
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * {@inheritdoc} |
||
| 41 | */ |
||
| 42 | public function and(SpecificationInterface $specification): CompositeInterface |
||
| 43 | { |
||
| 44 | //not implemented |
||
| 45 | } |
||
|
1 ignored issue
–
show
|
|||
| 46 | |||
| 47 | /** |
||
| 48 | * {@inheritdoc} |
||
| 49 | */ |
||
| 50 | public function or(SpecificationInterface $specification): CompositeInterface |
||
| 52 | //not implemented |
||
| 53 | } |
||
|
1 ignored issue
–
show
|
|||
| 54 | |||
| 55 | /** |
||
| 56 | * {@inheritdoc} |
||
| 57 | */ |
||
| 58 | public function not(): NotInterface |
||
| 60 | //not implemented |
||
| 61 | } |
||
| 63 |
For hinted functions/methods where all return statements with the correct type are only reachable via conditions, ?null? gets implicitly returned which may be incompatible with the hinted type. Let?s take a look at an example: