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/CssValue.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\Ast\AstNode; use ScssPhp\ScssPhp\SourceSpan\FileSpan; /** * A value in a plain CSS tree. * * This is used to associate a span with a value that doesn't otherwise track * its span. * * @template T * * @internal */ class CssValue implements AstNode { /** * @phpstan-var T */ protected $value; /** * @var FileSpan * @readonly */ private $span; /** * @param T $value */ public function __construct($value, FileSpan $span) { $this->value = $value; $this->span = $span; } /** * @return T */ public function getValue() { return $this->value; } public function getSpan(): FileSpan { return $this->span; } public function __toString(): string { if (\is_array($this->value)) { return implode($this->value); } return (string) $this->value; } }