public function getStoreData()
    {
        if (!isset($this->fileDataCache) || empty($this->fileDataCache)) {
            $data = [];

            if ($this->hasStoreData()) {
                $filename = static::FILE_NAME;
                $contents = file_get_contents("{$this->filepath}/{$filename}");

                if (!empty($contents) && $contents !== false) {
                    $data = Yaml::parse($contents);
                }
            }

            $this->fileDataCache = $data;
        }

        return $this->fileDataCache;
    }
public function getStoreData()
    {
        if (!isset($this->fileDataCache) || empty($this->fileDataCache)) {
            $data = [];

            if ($this->hasStoreData()) {
                $filename = static::FILE_NAME;
                $contents = file_get_contents("{$this->filepath}/{$filename}");

                if (!empty($contents) && $contents !== false) {
                    $data = Yaml::parse($contents);
                }
            }

            $this->fileDataCache = $data;
        }

        return $this->fileDataCache;
    }
public function getStoreData ( ) { if ( ! isset ( $ this -> fileDataCache ) || empty ( $ this -> fileDataCache ) ) { $ data = [ ] ; if ( $ this -> hasStoreData ( ) ) { $ filename = static :: FILE_NAME ; $ contents = file_get_contents ( "{$this->filepath}/{$filename}" ) ; if ( ! empty ( $ contents ) && $ contents !== false ) { $ data = Yaml :: parse ( $ contents ) ; } } $ this -> fileDataCache = $ data ; } return $ this -> fileDataCache ; }
Get YAML store contents.

@return array
An array of the YAML file contents.
Get YAML store contents .