EventType   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 28
dl 0
loc 35
ccs 15
cts 15
cp 1
rs 10
c 1
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getAllEventTypes() 0 16 1
1
<?php
2
3
namespace CMEN\GoogleChartsBundle\GoogleCharts;
4
5
/**
6
 * @author Christophe Meneses
7
 */
8
class EventType
9
{
10
    public const ANIMATION_FINISH = 'animationfinish';
11
    public const CLICK = 'click';
12
    public const COLLAPSE = 'collapse';
13
    public const ERROR = 'error';
14
    public const ON_MOUSE_OUT = 'onmouseout';
15
    public const ON_MOUSE_OVER = 'onmouseover';
16
    public const PAGE = 'page';
17
    public const RANGE_CHANGE = 'rangechange';
18
    public const READY = 'ready';
19
    public const REGION_CLICK = 'regionClick';
20
    public const ROLLUP = 'rollup';
21
    public const SELECT = 'select';
22
    public const SORT = 'sort';
23
24
    /**
25
     * @return string[]
26
     */
27 3
    public static function getAllEventTypes(): array
28
    {
29 3
        return [
30 3
            self::ANIMATION_FINISH,
31 3
            self::CLICK,
32 3
            self::COLLAPSE,
33 3
            self::ERROR,
34 3
            self::ON_MOUSE_OUT,
35 3
            self::ON_MOUSE_OVER,
36 3
            self::PAGE,
37 3
            self::RANGE_CHANGE,
38 3
            self::READY,
39 3
            self::REGION_CLICK,
40 3
            self::ROLLUP,
41 3
            self::SELECT,
42 3
            self::SORT,
43 3
        ];
44
    }
45
}
46