# visualizer/3.7.11/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Chart/Title.php

Visualizer – Tables &amp; Charts Manager with Built-in AI Generator, version 3.7.11. 67 lines.

- Page: https://pluginprobe.com/plugins/visualizer/3.7.11/code/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Chart/Title.php
- Raw: https://pluginprobe.com/plugins/visualizer/3.7.11/raw/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Chart/Title.php
- Modified: 2019-02-24T07:50:56+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/visualizer/3.7.11/code/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Chart/Title.php#L10-L20`.

```php
<?php

namespace PhpOffice\PhpSpreadsheet\Chart;

class Title
{
    /**
     * Title Caption.
     *
     * @var string
     */
    private $caption;

    /**
     * Title Layout.
     *
     * @var Layout
     */
    private $layout;

    /**
     * Create a new Title.
     *
     * @param null|mixed $caption
     * @param null|Layout $layout
     */
    public function __construct($caption = null, Layout $layout = null)
    {
        $this->caption = $caption;
        $this->layout = $layout;
    }

    /**
     * Get caption.
     *
     * @return string
     */
    public function getCaption()
    {
        return $this->caption;
    }

    /**
     * Set caption.
     *
     * @param string $caption
     *
     * @return Title
     */
    public function setCaption($caption)
    {
        $this->caption = $caption;

        return $this;
    }

    /**
     * Get Layout.
     *
     * @return Layout
     */
    public function getLayout()
    {
        return $this->layout;
    }
}

```
