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

Chart::setSubtitle()   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 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