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.

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

   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   * @internal
  21   */
  22  class ParserException extends \Exception implements SassException
  23  {
  24      /**
  25       * @var array
  26       */
  27      private $sourcePosition;
  28  
  29      /**
  30       * Get source position
  31       *
  32       * @api
  33       */
  34      public function getSourcePosition()
  35      {
  36          return $this->sourcePosition;
  37      }
  38  
  39      /**
  40       * Set source position
  41       *
  42       * @api
  43       *
  44       * @param array $sourcePosition
  45       */
  46      public function setSourcePosition($sourcePosition)
  47      {
  48          $this->sourcePosition = $sourcePosition;
  49      }
  50  }