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