file = $file; } /** * Returns an string content of the given entry. * * @return string|null */ public function getEntryContent() { if (!is_file($this->file)) { throw new RuntimeException("File {$this->file} does not exist."); } return file_get_contents($this->file); } }