Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 3.9.x will end* 10 May 2021 (12 months).
  • Bug fixes for security issues in 3.9.x will end* 8 May 2023 (36 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

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

   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       * @param null|Layout $layout
  26       */
  27      public function __construct($caption = null, Layout $layout = null)
  28      {
  29          $this->caption = $caption;
  30          $this->layout = $layout;
  31      }
  32  
  33      /**
  34       * Get caption.
  35       *
  36       * @return string
  37       */
  38      public function getCaption()
  39      {
  40          return $this->caption;
  41      }
  42  
  43      /**
  44       * Set caption.
  45       *
  46       * @param string $caption
  47       *
  48       * @return Title
  49       */
  50      public function setCaption($caption)
  51      {
  52          $this->caption = $caption;
  53  
  54          return $this;
  55      }
  56  
  57      /**
  58       * Get Layout.
  59       *
  60       * @return Layout
  61       */
  62      public function getLayout()
  63      {
  64          return $this->layout;
  65      }
  66  }