%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/SilentComment.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\Statement;
use ScssPhp\ScssPhp\SourceSpan\FileSpan;
use ScssPhp\ScssPhp\Visitor\StatementVisitor;
/**
* A silent Sass-style comment.
*
* @internal
*/
final class SilentComment implements Statement
{
/**
* @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 accept(StatementVisitor $visitor)
{
return $visitor->visitSilentComment($this);
}
public function __toString(): string
{
return $this->text;
}
}