File "StringPart.php"

Full Path: /home/ichhrkpd/public_html/php-svg-lib/dompdf/src/Css/Content/StringPart.php
File size: 482 bytes
MIME-type: text/x-php
Charset: utf-8

<?php
namespace Dompdf\Css\Content;

final class StringPart extends ContentPart
{
    /**
     * @var string
     */
    public $string;

    public function __construct(string $string)
    {
        $this->string = $string;
    }

    public function equals(ContentPart $other): bool
    {
        return $other instanceof self
            && $other->string === $this->string;
    }

    public function __toString(): string
    {
        return '"' . $this->string . '"';
    }
}