22 lines
480 B
PHP
22 lines
480 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\ValueObjects;
|
|
|
|
use App\Enums\CrawlOutcomeEnum;
|
|
use Illuminate\Support\Collection;
|
|
|
|
class FetchResult
|
|
{
|
|
public function __construct(
|
|
public CrawlOutcomeEnum $outcome,
|
|
public int $statusCode,
|
|
public string $finalUrl,
|
|
public string $title,
|
|
public string $extractedText,
|
|
public Collection $outboundLinks,
|
|
public int $wordCount,
|
|
public ?string $errorMessage,
|
|
) {}
|
|
}
|