Passed
Pull Request — master (#26)
by Christophe
03:34
created

EventType   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 38
ccs 15
cts 15
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getAllEventTypes() 0 18 1
1
<?php
2
3
namespace CMEN\GoogleChartsBundle\GoogleCharts;
4
5
/**
6
 * @author Christophe Meneses
7
 */
8
class EventType
9
{
10
    const ANIMATION_FINISH = 'animationfinish';
11
    const CLICK = 'click';
12
    const COLLAPSE = 'collapse';
13
    const ERROR = 'error';
14
    const ON_MOUSE_OUT = 'onmouseout';
15
    const ON_MOUSE_OVER = 'onmouseover';
16
    const PAGE = 'page';
17
    const RANGE_CHANGE = 'rangechange';
18
    const READY = 'ready';
19
    const REGION_CLICK = 'regionClick';
20
    const ROLLUP = 'rollup';
21
    const SELECT = 'select';
22
    const SORT = 'sort';
23
24
    /**
25
     * @return string[]
26
     */
27 3
    public static function getAllEventTypes()
28
    {
29
        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