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