%PDF- %PDF-
Direktori : /home/q/g/b/qgbqkvz/www/wp-content/plugins/wp-scss/scssphp/src/Ast/Sass/Statement/ |
Current File : /home/q/g/b/qgbqkvz/www/wp-content/plugins/wp-scss/scssphp/src/Ast/Sass/Statement/ErrorRule.php |
<?php /** * SCSSPHP * * @copyright 2012-2020 Leaf Corcoran * * @license http://opensource.org/licenses/MIT MIT * * @link http://scssphp.github.io/scssphp */ namespace ScssPhp\ScssPhp\Ast\Sass\Statement; use ScssPhp\ScssPhp\Ast\Sass\Expression; use ScssPhp\ScssPhp\Ast\Sass\Statement; use ScssPhp\ScssPhp\SourceSpan\FileSpan; use ScssPhp\ScssPhp\Visitor\StatementVisitor; /** * A `@error` rule. * * This emits an error and stops execution. * * @internal */ final class ErrorRule implements Statement { /** * @var Expression * @readonly */ private $expression; /** * @var FileSpan * @readonly */ private $span; public function __construct(Expression $expression, FileSpan $span) { $this->expression = $expression; $this->span = $span; } public function getExpression(): Expression { return $this->expression; } public function getSpan(): FileSpan { return $this->span; } public function accept(StatementVisitor $visitor) { return $visitor->visitErrorRule($this); } public function __toString(): string { return '@error ' . $this->expression . ';'; } }