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

MaterialTrait   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 32
rs 10
c 1
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getChart() 0 4 1
A setAxes() 0 6 1
1
<?php
2
3
namespace CMEN\GoogleChartsBundle\GoogleCharts\Options\Material;
4
5
/**
6
 * Trait MaterialTrait
7
 *
8
 * @author Christophe Meneses
9
 */
10
trait MaterialTrait
11
{
12
    /**
13
     * @var Chart
14
     */
15
    protected $chart;
16
17
    /**
18
     * @var array
19
     */
20
    protected $axes;
21
22
    /**
23
     * @return Chart
24
     */
25
    public function getChart()
26
    {
27
        return $this->chart;
28
    }
29
30
    /**
31
     * @param array $axes
32
     *
33
     * @return $this
34
     */
35
    public function setAxes($axes)
36
    {
37
        $this->axes = $axes;
38
39
        return $this;
40
    }
41
}
42