File "Url.php"
Full Path: /home/ichhrkpd/public_html/php-svg-lib/src/dompdf/src/Css/Content/Url.php
File size: 488 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
namespace Dompdf\Css\Content;
final class Url extends ContentPart
{
/**
* @var string
*/
public $url;
public function __construct(string $url)
{
$this->url = $url;
}
public function equals(ContentPart $other): bool
{
return $other instanceof self
&& $other->url === $this->url;
}
public function __toString(): string
{
return "url(\"" . str_replace("\"", "\\\"", $this->url) . "\")";
}
}