Test Failed
Push — master ( dd7c2d...d818fc )
by Christophe
02:23
created

AbstractChartOutput   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 40
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 40
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A setLanguage() 0 6 1
1
<?php
2
3
namespace CMEN\GoogleChartsBundle\ChartOutput;
4
5
/**
6
 * @author Christophe Meneses
7
 */
8
abstract class AbstractChartOutput implements ChartOutputInterface
9
{
10
    /**
11
     * Version of Google Charts used.
12
     *
13
     * @var string
14
     */
15
    protected $version;
16
17
    /**
18
     * Locale to customize currencies, dates, and numbers.
19
     *
20
     * @var string
21
     */
22
    protected $language;
23
24
    /**
25
     * AbstractChartOutput constructor.
26
     *
27
     * @param string $version
28
     * @param string $language
29
     */
30
    public function __construct($version, $language)
31
    {
32
        $this->version = $version;
33
        $this->language = $language;
34
    }
35
36
    /**
37
     * @param string $language
38
     *
39
     * @return $this
40
     */
41
    public function setLanguage($language)
42
    {
43
        $this->language = $language;
44
45
        return $this;
46
    }
47
}
48