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
/
Statement
/
/srv/data/web/vhosts/www.shinegis.mu/htdocs/functions/scssphp/src/Ast/Sass/Statement/ReturnRule.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 `@return` rule. * * This exits from the current function body with a return value. * * @internal */ final class ReturnRule 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->visitReturnRule($this); } public function __toString(): string { return '@return ' . $this->expression . ';'; } }