Lines 100.00% 3 / 3
Methods 100.00% 3 / 3
Classes 100.00% 1 / 1
Name Lines Methods CRAP
 __construct 100.00% 1 / 1 100.00% 1 / 1 1
 listStaleFiles 100.00% 1 / 1 100.00% 1 / 1 1
 isClean 100.00% 1 / 1 100.00% 1 / 1 1
10final readonly class CheckResult
11{
12    /** @param list<GenerationWarning> $warnings */
13    public function __construct(
14        public FileChangeCollection $changes,
15        public array $warnings,
16    ) {}
17
18    public function listStaleFiles(): FileChangeCollection
19    {
20        return $this->changes->filterStale();
21    }
22
23    public function isClean(): bool
24    {
25        return $this->changes->isClean();
26    }
27}