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.
   1  <?php
   2  
   3  /**
   4   * SCSSPHP
   5   *
   6   * @copyright 2012-2020 Leaf Corcoran
   7   *
   8   * @license http://opensource.org/licenses/MIT MIT
   9   *
  10   * @link http://scssphp.github.io/scssphp
  11   */
  12  
  13  namespace ScssPhp\ScssPhp\Block;
  14  
  15  use ScssPhp\ScssPhp\Block;
  16  use ScssPhp\ScssPhp\Type;
  17  
  18  /**
  19   * @internal
  20   */
  21  class IfBlock extends Block
  22  {
  23      /**
  24       * @var array
  25       */
  26      public $cond;
  27  
  28      /**
  29       * @var array<ElseifBlock|ElseBlock>
  30       */
  31      public $cases = [];
  32  
  33      public function __construct()
  34      {
  35          $this->type = Type::T_IF;
  36      }
  37  }