Total Complexity | 4 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
12 | final class DefaultChangelogStatus extends BaseModel implements ChangelogStatus |
||
13 | { |
||
14 | 7 | public function __construct( |
|
18 | 7 | } |
|
19 | |||
20 | 1 | public function getName(): string |
|
23 | } |
||
24 | |||
25 | 1 | public function getDescription(): string |
|
28 | } |
||
29 | |||
30 | /** @inheritDoc */ |
||
31 | 4 | public function __toArray(): array |
|
39 |
In the issue above, the returned value is violating the contract defined by the mentioned interface.
Let's take a look at an example: