Total Complexity | 6 |
Total Lines | 65 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | trait RendersOptionsTrait |
||
9 | { |
||
10 | use IsSelectionFieldTrait; |
||
11 | |||
12 | /** |
||
13 | * @var OptionsProviderInterface |
||
14 | */ |
||
15 | protected $selectionProvider; |
||
16 | |||
17 | /** |
||
18 | * Get the value of selectionProvider |
||
19 | * |
||
20 | * @return OptionsProviderInterface |
||
21 | */ |
||
22 | public function getSelectionProvider(): OptionsProviderInterface |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * Set the value of selectionProvider |
||
29 | * |
||
30 | * @param OptionsProviderInterface $selectionProvider |
||
31 | * |
||
32 | * @return self |
||
33 | */ |
||
34 | public function setSelectionProvider(OptionsProviderInterface $selectionProvider) |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * |
||
43 | */ |
||
44 | protected function defineSelectionText($selection) |
||
45 | { |
||
46 | return $this->selectionProvider->defineSelectionText($selection); |
||
47 | } |
||
48 | |||
49 | /** |
||
50 | * |
||
51 | */ |
||
52 | protected function renderSelection(): string |
||
63 | } |
||
64 | |||
65 | /** |
||
66 | * |
||
67 | */ |
||
68 | protected function createOption($selection): Option |
||
73 | ); |
||
74 | } |
||
76 |