| 1 | <?php |
||
| 19 | class IntegerIndex implements EntityIndex |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @var int |
||
| 23 | */ |
||
| 24 | private $value; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * IntegerIndex constructor. |
||
| 28 | * |
||
| 29 | * @param int $value |
||
| 30 | */ |
||
| 31 | 10 | public function __construct(int $value) { |
|
| 35 | |||
| 36 | /** |
||
| 37 | * @return mixed |
||
|
|
|||
| 38 | */ |
||
| 39 | 1 | public function getValue() |
|
| 43 | |||
| 44 | /** |
||
| 45 | * @return string |
||
| 46 | */ |
||
| 47 | 7 | public function __toString():string |
|
| 51 | } |
This check looks for the generic type
arrayas a return type and suggests a more specific type. This type is inferred from the actual code.