Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
srv
/
data
/
web
/
vhosts
/
www.shinegis.mu
/
htdocs
/
functions
/
scssphp
/
src
/
Ast
/
Sass
/
/srv/data/web/vhosts/www.shinegis.mu/htdocs/functions/scssphp/src/Ast/Sass/ConfiguredVariable.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; use ScssPhp\ScssPhp\SourceSpan\FileSpan; use ScssPhp\ScssPhp\Util\SpanUtil; /** * A variable configured by a `with` clause in a `@use` or `@forward` rule. * * @internal */ final class ConfiguredVariable implements SassNode, SassDeclaration { /** * @var string * @readonly */ private $name; /** * @var Expression * @readonly */ private $expression; /** * @var FileSpan * @readonly */ private $span; /** * @var bool * @readonly */ private $guarded; public function __construct(string $name, Expression $expression, FileSpan $span, bool $guarded = false) { $this->name = $name; $this->expression = $expression; $this->span = $span; $this->guarded = $guarded; } public function getName(): string { return $this->name; } public function getExpression(): Expression { return $this->expression; } public function getSpan(): FileSpan { return $this->span; } public function isGuarded(): bool { return $this->guarded; } public function getNameSpan(): FileSpan { return SpanUtil::initialIdentifier($this->span, 1); } public function __toString(): string { return '$' . $this->name . ': ' . $this->expression . ($this->guarded ? ' !default' : ''); } }