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

BarChartOptions::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 6
rs 9.4285
c 1
b 0
f 0
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
3
namespace CMEN\GoogleChartsBundle\GoogleCharts\Options\BarChart\Material;
4
5
use CMEN\GoogleChartsBundle\GoogleCharts\Options\Material\Chart;
6
use CMEN\GoogleChartsBundle\GoogleCharts\Options\Material\MaterialTrait;
7
8
/**
9
 * Class BarChartOptions
10
 *
11
 * @author Christophe Meneses
12
 */
13
class BarChartOptions extends \CMEN\GoogleChartsBundle\GoogleCharts\Options\BarChart\BarChartOptions
14
{
15
    use MaterialTrait;
16
17
    /**
18
     *  Whether the bars in a Material Bar Chart are vertical or horizontal.
19
     *
20
     * @var string
21
     */
22
    protected $bars;
23
24
    /**
25
     * BarChartOptions constructor.
26
     */
27
    public function __construct()
28
    {
29
        parent::__construct();
30
31
        $this->chart = new Chart();
32
    }
33
34
    /**
35
     * @param string $bars
36
     *
37
     * @return BarChartOptions
38
     */
39
    public function setBars($bars)
40
    {
41
        $this->bars = $bars;
42
43
        return $this;
44
    }
45
}
46