| 1 |
<?php |
| 2 |
|
| 3 |
namespace WCPOS\Vendor\Dompdf\Css\Content; |
| 4 |
|
| 5 |
final class Counter extends ContentPart |
| 6 |
{ |
| 7 |
/** |
| 8 |
* @var string |
| 9 |
*/ |
| 10 |
public $name; |
| 11 |
/** |
| 12 |
* @var string |
| 13 |
*/ |
| 14 |
public $style; |
| 15 |
public function __construct(string $name, string $style) |
| 16 |
{ |
| 17 |
$this->name = $name; |
| 18 |
$this->style = $style; |
| 19 |
} |
| 20 |
public function equals(ContentPart $other) : bool |
| 21 |
{ |
| 22 |
return $other instanceof self && $other->name === $this->name && $other->style === $this->style; |
| 23 |
} |
| 24 |
public function __toString() : string |
| 25 |
{ |
| 26 |
return "counter({$this->name}, {$this->style})"; |
| 27 |
} |
| 28 |
} |
| 29 |
|