input = $input; } public function isFile(): bool { return !$this->isDirectory(); } /** * Check if a given event name exists in the event array. */ protected function eventExists(string $event): bool { return in_array($event, $this->events, true); } public function getPath(): string { return $this->path; } public function __toString(): string { return $this->input; } }