Total Lines | 18 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
24 | interface BlockStateInterface |
||
25 | { |
||
26 | /** |
||
27 | * @param int $key |
||
28 | * @param mixed $default |
||
29 | * |
||
30 | * @return mixed |
||
31 | */ |
||
32 | public function getState(int $key, $default = null); |
||
33 | |||
34 | /** |
||
35 | * @param int $key |
||
36 | * @param mixed $value |
||
37 | * |
||
38 | * @return self |
||
|
|||
39 | */ |
||
40 | public function setState(int $key, $value): self; |
||
41 | } |
||
42 |
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.