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)"; } }