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
UnloadableAppFileCollection 100.00% 1 / 1 100.00% 1 / 1 1 100.00% 1 / 1
 listPaths 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\UnloadableAppFile;
9
10/** @extends ListCollection<UnloadableAppFile> */
11final readonly class UnloadableAppFileCollection extends ListCollection
12{
13    /** @return list<string> */
14    public function listPaths(): array
15    {
16        return $this->mapToList(static fn(UnloadableAppFile $file): string => $file->path);
17    }
18}