private function checkFile($fileName) { if (!File::exists($fileName)) { throw new InvalidArgumentException("No such file: {$fileName}."); } if (!File::isReadable($fileName)) { throw new InvalidArgumentException("No permission to read {$fileName} file."); } }
public function exist() { return File::exists($this->getPath()); }