type = $type; $this->path = $path; $this->basename = basename($path); } public function isFile() { return $this->type == self::TYPE_File; } public function isDirectory() { return $this->type == self::TYPE_Directory; } public function type() { return $this->type; } public function path() { return $this->path; } public function basename() { return $this->basename; } } ?>