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