Title.php 1002 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <?php
  2. namespace PhpOffice\PhpSpreadsheet\Chart;
  3. class Title
  4. {
  5. /**
  6. * Title Caption.
  7. *
  8. * @var string
  9. */
  10. private $caption;
  11. /**
  12. * Title Layout.
  13. *
  14. * @var Layout
  15. */
  16. private $layout;
  17. /**
  18. * Create a new Title.
  19. *
  20. * @param null|mixed $caption
  21. * @param null|Layout $layout
  22. */
  23. public function __construct($caption = null, Layout $layout = null)
  24. {
  25. $this->caption = $caption;
  26. $this->layout = $layout;
  27. }
  28. /**
  29. * Get caption.
  30. *
  31. * @return string
  32. */
  33. public function getCaption()
  34. {
  35. return $this->caption;
  36. }
  37. /**
  38. * Set caption.
  39. *
  40. * @param string $caption
  41. *
  42. * @return Title
  43. */
  44. public function setCaption($caption)
  45. {
  46. $this->caption = $caption;
  47. return $this;
  48. }
  49. /**
  50. * Get Layout.
  51. *
  52. * @return Layout
  53. */
  54. public function getLayout()
  55. {
  56. return $this->layout;
  57. }
  58. }