melder/vendor/PhpSpreadsheet/Chart/Title.php

66 lines
969 B
PHP
Raw Normal View History

2024-02-16 15:35:01 +01:00
<?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
*/
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 $this
*/
public function setCaption($caption)
{
$this->caption = $caption;
return $this;
}
/**
* Get Layout.
*
* @return Layout
*/
public function getLayout()
{
return $this->layout;
}
}