quidipo/lib/Gallery.php

20 lines
324 B
PHP

<?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;
}
}