Total Complexity | 7 |
Total Lines | 54 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5 | class StaticStyle implements ItemStyleInterface |
||
6 | { |
||
7 | use ItemStyleTrait; |
||
8 | |||
9 | protected const DEFAULT_STYLES = [ |
||
10 | 'markerOn' => '', |
||
11 | 'markerOff' => '', |
||
12 | 'itemExtra' => '', |
||
13 | 'displaysExtra' => false, |
||
14 | ]; |
||
15 | |||
16 | public function __construct() |
||
17 | { |
||
18 | $this->fromArray([]); |
||
19 | } |
||
20 | |||
21 | public function setMarkerOn(string $marker) : self |
||
22 | { |
||
23 | return $this; |
||
24 | } |
||
25 | |||
26 | public function setMarkerOff(string $marker) : self |
||
27 | { |
||
28 | return $this; |
||
29 | } |
||
30 | |||
31 | public function setItemExtra(string $itemExtra) : self |
||
34 | } |
||
35 | |||
36 | public function setDisplaysExtra(bool $displaysExtra) : self |
||
37 | { |
||
38 | return $this; |
||
39 | } |
||
40 | |||
41 | public function toArray(): array |
||
42 | { |
||
43 | return [ |
||
44 | 'markerOn' => $this->markerOn, |
||
45 | 'markerOff' => $this->markerOff, |
||
46 | 'itemExtra' => $this->itemExtra, |
||
47 | 'displaysExtra' => $this->displaysExtra, |
||
48 | ]; |
||
49 | } |
||
50 | |||
51 | public function fromArray(array $style) : self |
||
59 | } |
||
60 | } |
||
61 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.