|
<?php
|
|
|
|
final class Gallery
|
|
{
|
|
public string $id;
|
|
public string $label;
|
|
public array $images = [];
|
|
|
|
public function __construct(string $id, string $label)
|
|
{
|
|
$this->id = $id;
|
|
$this->label = $label;
|
|
}
|
|
|
|
public function add(Image $image)
|
|
{
|
|
$this->images[] = $image;
|
|
}
|
|
}
|