Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

Differences Between: [Versions 310 and 311] [Versions 311 and 400] [Versions 311 and 401] [Versions 311 and 402] [Versions 311 and 403] [Versions 39 and 311]

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