src/Core/Manifest/ClassManifest.php
protected function loadState($data)
    {
        $success = true;
        foreach ($this->serialisedProperties as $property) {
            if (!isset($data[$property]) || !is_array($data[$property])) {
                $success = false;
                $value = [];
            } else {
                $value = $data[$property];
            }
            $this->$property = $value;
        }
        return $success;
    }
protected function loadState($data)
    {
        $success = true;
        foreach ($this->serialisedProperties as $property) {
            if (!isset($data[$property]) || !is_array($data[$property])) {
                $success = false;
                $value = [];
            } else {
                $value = $data[$property];
            }
            $this->$property = $value;
        }
        return $success;
    }
protected function loadState ( $ data ) { $ success = true ; foreach ( $ this -> serialisedProperties as $ property ) { if ( ! isset ( $ data [ $ property ] ) || ! is_array ( $ data [ $ property ] ) ) { $ success = false ; $ value = [ ] ; } else { $ value = $ data [ $ property ] ; } $ this -> $ property = $ value ; } return $ success ; }
Reload state from given cache data

@param array $data
@return bool True if cache was valid and successfully loaded
Reload state from given cache data