Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 2 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 1 |
Option | |
0.00% |
0 / 2 |
|
0.00% |
0 / 2 |
6 | |
0.00% |
0 / 1 |
__construct | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getMessageNames | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | namespace MediaWiki\Extension\SecurePoll\Entities; |
4 | |
5 | use MediaWiki\Extension\SecurePoll\Context; |
6 | |
7 | /** |
8 | * Class representing the options which the voter can choose from when they are |
9 | * answering a question. |
10 | */ |
11 | class Option extends Entity { |
12 | /** |
13 | * Constructor |
14 | * @param Context $context |
15 | * @param array $info Associative array of entity info |
16 | */ |
17 | public function __construct( $context, $info ) { |
18 | parent::__construct( $context, 'option', $info ); |
19 | } |
20 | |
21 | /** |
22 | * Get a list of localisable message names. This is used to provide the |
23 | * translate subpage with a list of messages to localise. |
24 | * @return array |
25 | */ |
26 | public function getMessageNames() { |
27 | return [ 'text' ]; |
28 | } |
29 | } |