Total Complexity | 2 |
Total Lines | 66 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
17 | class ScoreThreshold implements ArrayInterface |
||
|
|||
18 | { |
||
19 | /** |
||
20 | * Options getter |
||
21 | * |
||
22 | * @return array |
||
23 | */ |
||
24 | public function toOptionArray() |
||
25 | { |
||
26 | return [ |
||
27 | [ |
||
28 | 'value' => 0.1, |
||
29 | 'label' => 0.1 |
||
30 | ], |
||
31 | [ |
||
32 | 'value' => 0.2, |
||
33 | 'label' => 0.2 |
||
34 | ], |
||
35 | [ |
||
36 | 'value' => 0.3, |
||
37 | 'label' => 0.3 |
||
38 | ], |
||
39 | [ |
||
40 | 'value' => 0.4, |
||
41 | 'label' => 0.4 |
||
42 | ], |
||
43 | [ |
||
44 | 'value' => 0.5, |
||
45 | 'label' => 0.5 |
||
46 | ], |
||
47 | [ |
||
48 | 'value' => 0.6, |
||
49 | 'label' => 0.6 |
||
50 | ], |
||
51 | [ |
||
52 | 'value' => 0.7, |
||
53 | 'label' => 0.7 |
||
54 | ], |
||
55 | [ |
||
56 | 'value' => 0.8, |
||
57 | 'label' => 0.8 |
||
58 | ], |
||
59 | [ |
||
60 | 'value' => 0.9, |
||
61 | 'label' => 0.9 |
||
62 | ] |
||
63 | ]; |
||
64 | } |
||
65 | |||
66 | /** |
||
67 | * Get options in "key-value" format |
||
68 | * |
||
69 | * @return array |
||
70 | */ |
||
71 | public function toArray() |
||
83 | ]; |
||
84 | } |
||
86 |
This interface has been deprecated. The supplier of the interface has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the interface will be removed and what other interface to use instead.