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