| Total Complexity | 7 |
| Total Lines | 54 |
| Duplicated Lines | 0 % |
| Coverage | 64.29% |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | final class Agenda implements ComparatorInterface |
||
| 15 | { |
||
| 16 | private $value; |
||
| 17 | |||
| 18 | 2 | public function __construct(Identity $identity) |
|
| 21 | 2 | } |
|
| 22 | |||
| 23 | /** |
||
| 24 | * {@inheritdoc} |
||
| 25 | */ |
||
| 26 | 1 | public function property(): string |
|
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * {@inheritdoc} |
||
| 33 | */ |
||
| 34 | 1 | public function sign(): string |
|
| 35 | { |
||
| 36 | 1 | return '='; |
|
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * {@inheritdoc} |
||
| 41 | */ |
||
| 42 | 1 | public function value() |
|
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * {@inheritdoc} |
||
| 49 | */ |
||
| 50 | public function and(SpecificationInterface $specification): CompositeInterface |
||
| 51 | { |
||
| 52 | //not implemented |
||
| 53 | } |
||
|
|
|||
| 54 | |||
| 55 | /** |
||
| 56 | * {@inheritdoc} |
||
| 57 | */ |
||
| 58 | public function or(SpecificationInterface $specification): CompositeInterface |
||
| 59 | { |
||
| 60 | //not implemented |
||
| 61 | } |
||
| 62 | |||
| 63 | /** |
||
| 64 | * {@inheritdoc} |
||
| 65 | */ |
||
| 66 | public function not(): NotInterface |
||
| 68 | //not implemented |
||
| 69 | } |
||
| 70 | } |
||
| 71 |
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: