self::MAX_LENGTH) { throw new InvalidCustomerName; } $this->value = $value; } public function equals(self $other): bool { return $this->value === $other->value; } }