<?php namespace App\Shared\Collection; use App\Shared\Dto\ErrorDto; use App\Shared\Dto\FileDto; class ValidationErrorCollection extends DtoCollection { private string $collectionType = ErrorDto::class; public function __construct(array $data = []) { parent::__construct($this->collectionType, $data); } }