1<?php
2
3/**
4 * PHPExcel_Chart_Title
5 *
6 * Copyright (c) 2006 - 2015 PHPExcel
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
21 *
22 * @category    PHPExcel
23 * @package        PHPExcel_Chart
24 * @copyright    Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel)
25 * @license        http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt    LGPL
26 * @version        ##VERSION##, ##DATE##
27 */
28class PHPExcel_Chart_Title
29{
30
31    /**
32     * Title Caption
33     *
34     * @var string
35     */
36    private $caption = null;
37
38    /**
39     * Title Layout
40     *
41     * @var PHPExcel_Chart_Layout
42     */
43    private $layout = null;
44
45    /**
46     * Create a new PHPExcel_Chart_Title
47     */
48    public function __construct($caption = null, PHPExcel_Chart_Layout $layout = null)
49    {
50        $this->caption = $caption;
51        $this->layout = $layout;
52    }
53
54    /**
55     * Get caption
56     *
57     * @return string
58     */
59    public function getCaption()
60    {
61        return $this->caption;
62    }
63
64    /**
65     * Set caption
66     *
67     * @param string $caption
68     * @return PHPExcel_Chart_Title
69     */
70    public function setCaption($caption = null)
71    {
72        $this->caption = $caption;
73
74        return $this;
75    }
76
77    /**
78     * Get Layout
79     *
80     * @return PHPExcel_Chart_Layout
81     */
82    public function getLayout()
83    {
84        return $this->layout;
85    }
86}
87