Proje dosyaları eklendi

This commit is contained in:
2026-08-29 15:53:53 +03:00
commit d3313400ca
440 changed files with 24827 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
<?php
namespace App\Serp\Data;
final readonly class SerpTaskResult
{
private function __construct(public bool $ready, public ?SerpResponse $response, public ?float $cost, public string $currency, public ?int $statusCode) {}
public static function waiting(?int $statusCode = null): self
{
return new self(false, null, null, 'USD', $statusCode);
}
public static function ready(SerpResponse $response, ?float $cost = null, string $currency = 'USD', ?int $statusCode = null): self
{
return new self(true, $response, $cost, $currency, $statusCode);
}
}