public function getFileContents($path) { if (!$this->fileExists($path)) { throw new InvalidArgumentException(sprintf('File %s does not exist.', $path)); } return file_get_contents($path); }