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
/
Serializer
/
/srv/data/web/vhosts/www.shinegis.mu/htdocs/functions/scssphp/src/Serializer/SimpleStringBuffer.php
<?php /** * SCSSPHP * * @copyright 2018-2020 Anthon Pang * * @license http://opensource.org/licenses/MIT MIT * * @link http://scssphp.github.io/scssphp */ namespace ScssPhp\ScssPhp\Serializer; /** * @internal */ final class SimpleStringBuffer implements StringBuffer { /** * @var string */ private $text = ''; public function getLength(): int { return \strlen($this->text); } public function write(string $string): void { $this->text .= $string; } public function writeChar(string $char): void { $this->text .= $char; } public function __toString(): string { return $this->text; } }