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