Attribute to specify the DTO class for array collections.
Since PHP doesn't have runtime generics, this attribute tells the DtoMapper what type of DTO to create for each element in an array.
readonly class ArticleDto {
public function __construct(
public int $id,
public string $title,
#[CollectionOf(CommentDto::class)]
public array $comments = [],
) {}
}