Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

Differences Between: [Versions 401 and 402] [Versions 401 and 403]

   1  <?php
   2  
   3  namespace PhpOffice\PhpSpreadsheet\Style\ConditionalFormatting;
   4  
   5  class ConditionalFormatValueObject
   6  {
   7      private $type;
   8  
   9      private $value;
  10  
  11      private $cellFormula;
  12  
  13      /**
  14       * ConditionalFormatValueObject constructor.
  15       *
  16       * @param null|mixed $cellFormula
  17       */
  18      public function __construct($type, $value = null, $cellFormula = null)
  19      {
  20          $this->type = $type;
  21          $this->value = $value;
  22          $this->cellFormula = $cellFormula;
  23      }
  24  
  25      /**
  26       * @return mixed
  27       */
  28      public function getType()
  29      {
  30          return $this->type;
  31      }
  32  
  33      /**
  34       * @param mixed $type
  35       */
  36      public function setType($type)
  37      {
  38          $this->type = $type;
  39  
  40          return $this;
  41      }
  42  
  43      /**
  44       * @return mixed
  45       */
  46      public function getValue()
  47      {
  48          return $this->value;
  49      }
  50  
  51      /**
  52       * @param mixed $value
  53       */
  54      public function setValue($value)
  55      {
  56          $this->value = $value;
  57  
  58          return $this;
  59      }
  60  
  61      /**
  62       * @return mixed
  63       */
  64      public function getCellFormula()
  65      {
  66          return $this->cellFormula;
  67      }
  68  
  69      /**
  70       * @param mixed $cellFormula
  71       */
  72      public function setCellFormula($cellFormula)
  73      {
  74          $this->cellFormula = $cellFormula;
  75  
  76          return $this;
  77      }
  78  }