Spaces:
Sleeping
Sleeping
Download apps/php-sdk/src/Models/LocationConfig.php from s-eto-hub/firecrawl-api: direct link, hf CLI and curl.
- Browser
- Download file 968 Bytes
-
https://huggingface.co/spaces/s-eto-hub/firecrawl-api/resolve/main/apps/php-sdk/src/Models/LocationConfig.php
- Command line
-
hf download hf://spaces/s-eto-hub/firecrawl-api/apps/php-sdk/src/Models/LocationConfig.php
-
curl -L -o LocationConfig.php https://huggingface.co/spaces/s-eto-hub/firecrawl-api/resolve/main/apps/php-sdk/src/Models/LocationConfig.php
968 Bytes
| declare(strict_types=1); | |
| namespace Firecrawl\Models; | |
| final class LocationConfig | |
| { | |
| private function __construct( | |
| private readonly ?string $country = null, | |
| /** @var list<string>|null */ | |
| private readonly ?array $languages = null, | |
| ) {} | |
| /** | |
| * @param list<string>|null $languages | |
| */ | |
| public static function with( | |
| ?string $country = null, | |
| ?array $languages = null, | |
| ): self { | |
| return new self($country, $languages); | |
| } | |
| /** @return array<string, mixed> */ | |
| public function toArray(): array | |
| { | |
| return array_filter([ | |
| 'country' => $this->country, | |
| 'languages' => $this->languages, | |
| ], fn (mixed $v): bool => $v !== null); | |
| } | |
| public function getCountry(): ?string | |
| { | |
| return $this->country; | |
| } | |
| /** @return list<string>|null */ | |
| public function getLanguages(): ?array | |
| { | |
| return $this->languages; | |
| } | |
| } | |