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
/
Css
/
/srv/data/web/vhosts/www.shinegis.mu/htdocs/functions/scssphp/src/Ast/Css/ModifiableCssComment.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\Css; use ScssPhp\ScssPhp\SourceSpan\FileSpan; /** * A modifiable version of {@see CssComment} for use in the evaluation step. * * @internal */ final class ModifiableCssComment extends ModifiableCssNode implements CssComment { /** * @var string * @readonly */ private $text; /** * @var FileSpan * @readonly */ private $span; public function __construct(string $text, FileSpan $span) { $this->text = $text; $this->span = $span; } public function getText(): string { return $this->text; } public function getSpan(): FileSpan { return $this->span; } public function isPreserved(): bool { return $this->text[2] === '!'; } public function accept($visitor) { return $visitor->visitCssComment($this); } }