Conditions | 1 |
Paths | 1 |
Total Lines | 20 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | public function __construct($options) |
||
20 | { |
||
21 | parent::__construct($options); |
||
22 | |||
23 | $this->choices = \Nexy\PayboxDirect\Enum\Activity::getConstants(); |
||
24 | |||
25 | // Option to choose to show constant or options |
||
26 | $this->message = 'The value you selected is not a valid ' |
||
27 | .\Nexy\PayboxDirect\Enum\Activity::class |
||
28 | .' enum value. Valid constants are: ' |
||
29 | .implode(', ', \Nexy\PayboxDirect\Enum\Activity::getKeys()) |
||
30 | .'.' |
||
31 | ; |
||
32 | $this->multipleMessage = 'One or more of the given ' |
||
33 | .\Nexy\PayboxDirect\Enum\Activity::class |
||
34 | .' enum values is invalid. Valid constants are: ' |
||
35 | .implode(', ', \Nexy\PayboxDirect\Enum\Activity::getKeys()) |
||
36 | .'.' |
||
37 | ; |
||
38 | } |
||
39 | |||
48 |