25 lines
556 B
PHP
25 lines
556 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\ValueObjects;
|
|
|
|
use App\Enums\CrawlOutcomeEnum;
|
|
use Illuminate\Support\Collection;
|
|
|
|
class FetchResult
|
|
{
|
|
/**
|
|
* @param Collection<int, string> $outboundLinks
|
|
*/
|
|
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,
|
|
) {}
|
|
}
|