<?phpnamespace App\Api\BrcBackend\DTO;final class ProfilesList extends PaginationList{ private array $profiles = []; /** * @param array $profilesList * * @throws \Exception */ public function __construct(array $profilesList) { parent::__construct($profilesList); foreach ($profilesList['items'] as $profile) { $this->profiles[] = new Profile($profile); } } /** * @return array<Profile> */ public function getProfiles(): array { return $this->profiles; }}