/** * Директива @endcache * * @return string */ public function endCache() { return $this->cache->put($this->getKey(), ob_get_clean()); }