mirror of
https://github.com/Karaka-Management/Resources.git
synced 2026-01-28 03:58:40 +00:00
67 lines
1002 B
PHP
Executable File
67 lines
1002 B
PHP
Executable File
<?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;
|
|
}
|
|
}
|