*/ public function valid(): Collection { return $this->filter(static fn (ScanResult $result): bool => $result->isValid()); } /** @return Collection */ public function success(): Collection { return $this->filter(static fn (ScanResult $result): bool => $result->isSuccess()); } /** @return Collection */ public function skipped(): Collection { return $this->filter(static fn (ScanResult $result): bool => $result->isSkipped()); } /** @return Collection */ public function error(): Collection { return $this->filter(static fn (ScanResult $result): bool => $result->isError()); } }