Spaces:
Sleeping
Sleeping
Download apps/php-sdk/src/Models/BatchScrapeResponse.php from s-eto-hub/firecrawl-api: direct link, hf CLI and curl.
- Browser
- Download file 910 Bytes
-
https://huggingface.co/spaces/s-eto-hub/firecrawl-api/resolve/main/apps/php-sdk/src/Models/BatchScrapeResponse.php
- Command line
-
hf download hf://spaces/s-eto-hub/firecrawl-api/apps/php-sdk/src/Models/BatchScrapeResponse.php
-
curl -L -o BatchScrapeResponse.php https://huggingface.co/spaces/s-eto-hub/firecrawl-api/resolve/main/apps/php-sdk/src/Models/BatchScrapeResponse.php
910 Bytes
| declare(strict_types=1); | |
| namespace Firecrawl\Models; | |
| final class BatchScrapeResponse | |
| { | |
| /** | |
| * @param list<string>|null $invalidURLs | |
| */ | |
| public function __construct( | |
| private readonly ?string $id = null, | |
| private readonly ?string $url = null, | |
| private readonly ?array $invalidURLs = null, | |
| ) {} | |
| /** @param array<string, mixed> $data */ | |
| public static function fromArray(array $data): self | |
| { | |
| return new self( | |
| id: $data['id'] ?? null, | |
| url: $data['url'] ?? null, | |
| invalidURLs: $data['invalidURLs'] ?? null, | |
| ); | |
| } | |
| public function getId(): ?string | |
| { | |
| return $this->id; | |
| } | |
| public function getUrl(): ?string | |
| { | |
| return $this->url; | |
| } | |
| /** @return list<string>|null */ | |
| public function getInvalidURLs(): ?array | |
| { | |
| return $this->invalidURLs; | |
| } | |
| } | |