string = $string; } public function equals(ContentPart $other): bool { return $other instanceof self && $other->string === $this->string; } public function __toString(): string { return '"' . $this->string . '"'; } }