eddiriarte /
console-select
| 1 | <?php |
||
|
0 ignored issues
–
show
Coding Style
introduced
by
Loading history...
|
|||
| 2 | namespace EddIriarte\Console\Inputs\Interfaces; |
||
|
0 ignored issues
–
show
|
|||
| 3 | |||
| 4 | /** |
||
| 5 | * Interface SelectInput |
||
| 6 | * @package EddIriarte\Console\Inputs\Interfaces |
||
|
0 ignored issues
–
show
|
|||
| 7 | * @author Eduardo Iriarte <eddiriarte[at]gmail[dot]com> |
||
|
0 ignored issues
–
show
Content of the @author tag must be in the form "Display Name <[email protected]>"
Loading history...
|
|||
| 8 | */ |
||
|
0 ignored issues
–
show
|
|||
| 9 | interface SelectInput |
||
| 10 | { |
||
|
0 ignored issues
–
show
|
|||
| 11 | /** |
||
|
0 ignored issues
–
show
|
|||
| 12 | * @return string |
||
| 13 | */ |
||
| 14 | public function getMessage(): string; |
||
|
0 ignored issues
–
show
|
|||
| 15 | |||
| 16 | /** |
||
|
0 ignored issues
–
show
|
|||
| 17 | * @return array |
||
| 18 | */ |
||
| 19 | public function getOptions(): array; |
||
|
0 ignored issues
–
show
|
|||
| 20 | |||
| 21 | /** |
||
|
0 ignored issues
–
show
|
|||
| 22 | * @return array |
||
| 23 | */ |
||
| 24 | public function getSelections(): array; |
||
|
0 ignored issues
–
show
|
|||
| 25 | |||
| 26 | /** |
||
|
0 ignored issues
–
show
|
|||
| 27 | * @return bool |
||
|
0 ignored issues
–
show
|
|||
| 28 | */ |
||
| 29 | public function hasSelections(): bool; |
||
|
0 ignored issues
–
show
|
|||
| 30 | |||
| 31 | /** |
||
|
0 ignored issues
–
show
|
|||
| 32 | * @param string $option |
||
|
0 ignored issues
–
show
|
|||
| 33 | * @return bool |
||
|
0 ignored issues
–
show
|
|||
| 34 | */ |
||
| 35 | public function isSelected(string $option): bool; |
||
|
0 ignored issues
–
show
|
|||
| 36 | |||
| 37 | /** |
||
|
0 ignored issues
–
show
|
|||
| 38 | * @param string $option |
||
|
0 ignored issues
–
show
|
|||
| 39 | */ |
||
|
0 ignored issues
–
show
|
|||
| 40 | public function select(string $option): void; |
||
|
0 ignored issues
–
show
|
|||
| 41 | } |
||
|
0 ignored issues
–
show
|
|||
| 42 |