public function getContents($path) { $stream = $this->open($path, 'r'); $contents = @stream_get_contents($stream); fclose($stream); $this->exceptionIfFalse($contents); return $contents; }