src/Cache.php
public function cachedData()
    {
        if (!$this->isCached()) {
            return null;
        }

        $contents = file_get_contents($this->file);

        $serializationEnabled = static::config('serialize');

        $data = $serializationEnabled ? unserialize($contents) : $contents;

        return $data;
    }
public function cachedData()
    {
        if (!$this->isCached()) {
            return null;
        }

        $contents = file_get_contents($this->file);

        $serializationEnabled = static::config('serialize');

        $data = $serializationEnabled ? unserialize($contents) : $contents;

        return $data;
    }
public function cachedData ( ) { if ( ! $ this -> isCached ( ) ) { return null ; } $ contents = file_get_contents ( $ this -> file ) ; $ serializationEnabled = static :: config ( 'serialize' ) ; $ data = $ serializationEnabled ? unserialize ( $ contents ) : $ contents ; return $ data ; }
Retrieves the cached data that is refered by this object
@return mixed
Retrieves the cached data that is refered by this object