Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.
   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;
  14  
  15  class CompilationResult
  16  {
  17      /**
  18       * @var string
  19       */
  20      private $css;
  21  
  22      /**
  23       * @var string|null
  24       */
  25      private $sourceMap;
  26  
  27      /**
  28       * @var string[]
  29       */
  30      private $includedFiles;
  31  
  32      /**
  33       * @param string $css
  34       * @param string|null $sourceMap
  35       * @param string[] $includedFiles
  36       */
  37      public function __construct($css, $sourceMap, array $includedFiles)
  38      {
  39          $this->css = $css;
  40          $this->sourceMap = $sourceMap;
  41          $this->includedFiles = $includedFiles;
  42      }
  43  
  44      /**
  45       * @return string
  46       */
  47      public function getCss()
  48      {
  49          return $this->css;
  50      }
  51  
  52      /**
  53       * @return string[]
  54       */
  55      public function getIncludedFiles()
  56      {
  57          return $this->includedFiles;
  58      }
  59  
  60      /**
  61       * The sourceMap content, if it was generated
  62       *
  63       * @return null|string
  64       */
  65      public function getSourceMap()
  66      {
  67          return $this->sourceMap;
  68      }
  69  }