Total Complexity | 4 |
Total Lines | 52 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class Crosshair |
||
9 | { |
||
10 | use ColorTrait; |
||
11 | |||
12 | use OpacityTrait; |
||
13 | |||
14 | use OrientationTrait; |
||
15 | |||
16 | /** |
||
17 | * @var Focused |
||
18 | */ |
||
19 | protected $focused; |
||
20 | |||
21 | /** |
||
22 | * @var Selected |
||
23 | */ |
||
24 | protected $selected; |
||
25 | |||
26 | /** |
||
27 | * Value can be : |
||
28 | * 'both' : display on both focus and selection |
||
29 | * 'focus' : display on focus only |
||
30 | * 'selection' : display on selection only. |
||
31 | * |
||
32 | * @var string |
||
33 | */ |
||
34 | protected $trigger; |
||
35 | |||
36 | 3 | public function __construct() |
|
40 | } |
||
41 | |||
42 | 1 | public function getFocused(): Focused |
|
43 | { |
||
44 | 1 | return $this->focused; |
|
45 | } |
||
46 | |||
47 | 1 | public function getSelected(): Selected |
|
48 | { |
||
49 | 1 | return $this->selected; |
|
50 | } |
||
51 | |||
52 | /** |
||
53 | * @return $this |
||
54 | */ |
||
55 | 1 | public function setTrigger(string $trigger) |
|
60 | } |
||
61 | } |
||
62 |