Completed
Push — master ( f6145a...ab3b35 )
by Christophe
02:20
created

LineChart::getPackage()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 4
rs 10
c 1
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace CMEN\GoogleChartsBundle\GoogleCharts\Charts\Material;
4
5
use CMEN\GoogleChartsBundle\GoogleCharts\Options\LineChart\Material\LineChartOptions;
6
7
/**
8
 * Class LineChart
9
 *
10
 * @author Christophe Meneses
11
 */
12
class LineChart extends \CMEN\GoogleChartsBundle\GoogleCharts\Charts\LineChart
13
{
14
    /**
15
     * LineChart constructor.
16
     */
17
    public function __construct()
18
    {
19
        parent::__construct();
20
21
        $this->options = new LineChartOptions();
22
    }
23
24
    /**
25
     * @inheritdoc
26
     */
27
    public function getPackage()
28
    {
29
        return 'line';
30
    }
31
32
    /**
33
     * @inheritdoc
34
     */
35
    protected function getLibrary()
36
    {
37
        return 'charts';
38
    }
39
40
    /**
41
     * @inheritdoc
42
     */
43
    protected function getType()
44
    {
45
        return 'Line';
46
    }
47
48
    /**
49
     * @return LineChartOptions
50
     */
51
    public function getOptions()
52
    {
53
        return $this->options;
54
    }
55
}
56