Title.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <?php
  2. /**
  3. * 重庆赤晓店信息科技有限公司
  4. * https://www.chixiaodian.com
  5. * Copyright (c) 2023 赤店商城 All rights reserved.
  6. */
  7. class PHPExcel_Chart_Title
  8. {
  9. /**
  10. * Title Caption
  11. *
  12. * @var string
  13. */
  14. private $caption = null;
  15. /**
  16. * Title Layout
  17. *
  18. * @var PHPExcel_Chart_Layout
  19. */
  20. private $layout = null;
  21. /**
  22. * Create a new PHPExcel_Chart_Title
  23. */
  24. public function __construct($caption = null, PHPExcel_Chart_Layout $layout = null)
  25. {
  26. $this->caption = $caption;
  27. $this->layout = $layout;
  28. }
  29. /**
  30. * Get caption
  31. *
  32. * @return string
  33. */
  34. public function getCaption()
  35. {
  36. return $this->caption;
  37. }
  38. /**
  39. * Set caption
  40. *
  41. * @param string $caption
  42. * @return PHPExcel_Chart_Title
  43. */
  44. public function setCaption($caption = null)
  45. {
  46. $this->caption = $caption;
  47. return $this;
  48. }
  49. /**
  50. * Get Layout
  51. *
  52. * @return PHPExcel_Chart_Layout
  53. */
  54. public function getLayout()
  55. {
  56. return $this->layout;
  57. }
  58. }