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  /**
   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\Exception;
  14  
  15  /**
  16   * Parser Exception
  17   *
  18   * @author Oleksandr Savchenko <traveltino@gmail.com>
  19   */
  20  class ParserException extends \Exception implements SassException
  21  {
  22      /**
  23       * @var array
  24       */
  25      private $sourcePosition;
  26  
  27      /**
  28       * Get source position
  29       *
  30       * @api
  31       */
  32      public function getSourcePosition()
  33      {
  34          return $this->sourcePosition;
  35      }
  36  
  37      /**
  38       * Set source position
  39       *
  40       * @api
  41       *
  42       * @param array $sourcePosition
  43       */
  44      public function setSourcePosition($sourcePosition)
  45      {
  46          $this->sourcePosition = $sourcePosition;
  47      }
  48  }