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

Chart   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 40
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 40
rs 10
c 1
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setSubtitle() 0 6 1
A setTitle() 0 6 1
1
<?php
2
3
namespace CMEN\GoogleChartsBundle\GoogleCharts\Options\Material;
4
5
/**
6
 * Class Chart
7
 *
8
 * @author Christophe Meneses
9
 */
10
class Chart
11
{
12
    /**
13
     * This option specifies the subtitle.
14
     *
15
     * @var string
16
     */
17
    protected $subtitle;
18
19
    /**
20
     * This option specifies the title.
21
     *
22
     * @var string
23
     */
24
    protected $title;
25
26
    /**
27
     * @param string $subtitle
28
     *
29
     * @return Chart
30
     */
31
    public function setSubtitle($subtitle)
32
    {
33
        $this->subtitle = $subtitle;
34
35
        return $this;
36
    }
37
38
    /**
39
     * @param string $title
40
     *
41
     * @return Chart
42
     */
43
    public function setTitle($title)
44
    {
45
        $this->title = $title;
46
47
        return $this;
48
    }
49
}
50