EventType::getAllEventTypes()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 16
Code Lines 14

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 15
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 14
nc 1
nop 0
dl 0
loc 16
ccs 15
cts 15
cp 1
crap 1
rs 9.7998
c 1
b 0
f 0
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