Total Complexity | 6 |
Total Lines | 62 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | abstract class AbstractSelect implements SelectInput |
||
14 | { |
||
15 | use ChunkableOptions; |
||
16 | |||
17 | protected $message; |
||
18 | |||
19 | protected $options; |
||
20 | |||
21 | protected $selections; |
||
22 | |||
23 | /** |
||
24 | * AbstractSelect constructor. |
||
25 | * |
||
26 | * @param string $message |
||
27 | * @param array $options |
||
28 | */ |
||
29 | 18 | public function __construct(string $message, array $options) |
|
30 | { |
||
31 | 18 | $this->message = $message; |
|
32 | 18 | $this->options = $options; |
|
33 | 18 | $this->selections = []; |
|
34 | 18 | } |
|
35 | |||
36 | /** |
||
37 | * {@inheritdoc} |
||
38 | */ |
||
39 | 7 | public function getMessage(): string |
|
40 | { |
||
41 | 7 | return $this->message; |
|
42 | } |
||
43 | |||
44 | /** |
||
45 | * @return array |
||
46 | */ |
||
47 | 9 | public function getOptions(): array |
|
50 | } |
||
51 | |||
52 | /** |
||
53 | * @return array |
||
54 | */ |
||
55 | 9 | public function getSelections(): array |
|
58 | } |
||
59 | |||
60 | /** |
||
61 | * @return bool |
||
62 | */ |
||
63 | 1 | public function hasSelections(): bool |
|
66 | } |
||
67 | |||
68 | /** |
||
69 | * @param string $option |
||
70 | * @return bool |
||
71 | */ |
||
72 | 10 | public function isSelected(string $option): bool |
|
75 | } |
||
76 | } |
||
77 |