protected function isReadable($file) { // use parent for coverage parent::isReadable($file); // now use the fake return isset($this->fakefs[$file]); }
/** * * Gets a template from the registry and binds $this to it. * * @param string $name The template name. * * @return Closure * */ protected function getTemplate($name) { $tmpl = $this->template_registry->get($name); return $tmpl->bindTo($this, get_class($this)); }
/** * @return string[] Array containing all raw template strings. */ public function getTemplates() { return $this->templateRegistry->getTemplates(); }