file = $file; } public function read() { if (!$this->file->exists()) { throw new \RuntimeException("File {$this->file} does not exist!"); } return file_get_contents($this->file->asString()); } }