cache = $cache; $this->cacheable = true; } /** * @param ParserOutput $output * @param string $cacheTime */ protected function saveInCache( ParserOutput $output, string $cacheTime ) { $this->cache->save( $output, $this->revision, $this->parserOptions, $cacheTime ); } /** * @return bool */ public function getCachedWork() { $this->parserOutput = $this->cache->get( $this->revision, $this->parserOptions ); return (bool)$this->parserOutput; } }