Spaces:
Sleeping
Sleeping
Download apps/php-sdk/src/Models/HighlightsFormat.php from s-eto-hub/firecrawl-api: direct link, hf CLI and curl.
- Browser
- Download file 549 Bytes
-
https://huggingface.co/spaces/s-eto-hub/firecrawl-api/resolve/main/apps/php-sdk/src/Models/HighlightsFormat.php
- Command line
-
hf download hf://spaces/s-eto-hub/firecrawl-api/apps/php-sdk/src/Models/HighlightsFormat.php
-
curl -L -o HighlightsFormat.php https://huggingface.co/spaces/s-eto-hub/firecrawl-api/resolve/main/apps/php-sdk/src/Models/HighlightsFormat.php
549 Bytes
| declare(strict_types=1); | |
| namespace Firecrawl\Models; | |
| final class HighlightsFormat | |
| { | |
| private function __construct( | |
| private readonly string $query, | |
| ) {} | |
| public static function with(string $query): self | |
| { | |
| return new self($query); | |
| } | |
| /** @return array<string, mixed> */ | |
| public function toArray(): array | |
| { | |
| return [ | |
| 'type' => 'highlights', | |
| 'query' => $this->query, | |
| ]; | |
| } | |
| public function getQuery(): string | |
| { | |
| return $this->query; | |
| } | |
| } | |