protected function load()
    {
        if (!file_exists($this->getFileName())) {
            return;
        }
        $this->dataSet = json_decode(file_get_contents($this->getFileName()));
        if (!$this->dataSet) {
            throw new ContentNotFound("Loaded snapshot is empty");
        }
    }
protected function load()
    {
        if (!file_exists($this->getFileName())) {
            return;
        }
        $this->dataSet = json_decode(file_get_contents($this->getFileName()));
        if (!$this->dataSet) {
            throw new ContentNotFound("Loaded snapshot is empty");
        }
    }
protected function load ( ) { if ( ! file_exists ( $ this -> getFileName ( ) ) ) { return ; } $ this -> dataSet = json_decode ( file_get_contents ( $ this -> getFileName ( ) ) ) ; if ( ! $ this -> dataSet ) { throw new ContentNotFound ( "Loaded snapshot is empty" ) ; } }
Loads data set from file.
Loads data set from file .