Lines 100.00% 1 / 1
Functions and Methods 100.00% 1 / 1
Classes and Traits 100.00% 1 / 1
Name Lines Functions and Methods CRAP Classes and Traits
UnmarkedAppCollection 100.00% 1 / 1 100.00% 1 / 1 1 100.00% 1 / 1
 listClasses 100.00% 1 / 1 100.00% 1 / 1 1
1<?php
2
3declare(strict_types=1);
4
5namespace Stewart\Runtime\App\Collection;
6
7use Stewart\Contracts\Collection\ListCollection;
8use Stewart\Runtime\App\UnmarkedApp;
9
10/** @extends ListCollection<UnmarkedApp> */
11final readonly class UnmarkedAppCollection extends ListCollection
12{
13    /** @return list<class-string> */
14    public function listClasses(): array
15    {
16        return $this->mapToList(static fn(UnmarkedApp $app): string => $app->class);
17    }
18}