Initial commit
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
namespace Dompdf\Css\Content;
|
||||
|
||||
final class Counters extends ContentPart
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $name;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $string;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $style;
|
||||
|
||||
public function __construct(string $name, string $string, string $style)
|
||||
{
|
||||
$this->name = $name;
|
||||
$this->string = $string;
|
||||
$this->style = $style;
|
||||
}
|
||||
|
||||
public function equals(ContentPart $other): bool
|
||||
{
|
||||
return $other instanceof self
|
||||
&& $other->name === $this->name
|
||||
&& $other->string === $this->string
|
||||
&& $other->style === $this->style;
|
||||
}
|
||||
|
||||
public function __toString(): string
|
||||
{
|
||||
return "counters($this->name, \"$this->string\", $this->style)";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user