public function fetch($id)
    {
        $file = $this->getFilename($id);

        if (!$this->exists($id)) {
            throw new NotExistsException(sprintf('Could not fetch data from file as file does not exist: %s', $file));
        }

        return $this->readData($file);
    }
public function fetch($id)
    {
        $file = $this->getFilename($id);

        if (!$this->exists($id)) {
            throw new NotExistsException(sprintf('Could not fetch data from file as file does not exist: %s', $file));
        }

        return $this->readData($file);
    }
public function fetch ( $ id ) { $ file = $ this -> getFilename ( $ id ) ; if ( ! $ this -> exists ( $ id ) ) { throw new NotExistsException ( sprintf ( 'Could not fetch data from file as file does not exist: %s' , $ file ) ) ; } return $ this -> readData ( $ file ) ; }
Fetch data from file.

@access public
@param  string                                         $id
@return mixed|void
@throws \JonnyW\PhantomJs\Exception\NotExistsException
Fetch data from file .