type === ScanResultType::SUCCESS; } public function isSkipped(): bool { return $this->type === ScanResultType::SKIPPED; } public function isError(): bool { return $this->type === ScanResultType::ERROR; } public function isValid(): bool { return $this->isSuccess() || $this->isSkipped(); } public function __toString(): string { $name = $this->type->value . ': ' . $this->path; return $this->isError() ? $name . ' - ' . $this->error : $name; } }