19 lines
547 B
PHP
19 lines
547 B
PHP
<?php
|
|
|
|
namespace App\Domain\Model\Cars;
|
|
|
|
use App\Domain\Model\Id\CarModelId;
|
|
use App\Domain\Model\Id\CarRevisionId;
|
|
use App\Domain\Model\Id\EmbeddingIdCollection;
|
|
use App\Domain\Model\Image;
|
|
|
|
final readonly class CarRevision
|
|
{
|
|
public function __construct(
|
|
public readonly CarRevisionId $carRevisionId,
|
|
public readonly CarModelId $carModelId,
|
|
public readonly string $name,
|
|
public readonly ?Image $image = null,
|
|
public readonly EmbeddingIdCollection $embeddings = new EmbeddingIdCollection([]),
|
|
) {}
|
|
} |