| 1 | <?php |
||
| 34 | class HiddenInformation extends AbstractInformation |
||
| 35 | { |
||
| 36 | /** |
||
| 37 | * @var string |
||
| 38 | */ |
||
| 39 | protected $question = 'Would you like to create hidden data? '; |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @return int |
||
| 43 | */ |
||
| 44 | public function getDefaultValue() |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @return array |
||
|
|
|||
| 51 | */ |
||
| 52 | public function getChoices() |
||
| 60 | |||
| 61 | /** |
||
| 62 | * @return int |
||
| 63 | */ |
||
| 64 | public function getType() |
||
| 68 | } |
||
| 69 |
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.