/** * Get formatted templates. * * @return array */ public function getFormattedTemplates() { if (!isset($this->formattedData['templates'])) { $this->formattedData['templates'] = $this->formatter->getTemplates(); } return $this->formattedData['templates']; }
/** * Get formatted templates, if either "createMissing" or "updateExisting" templates option is true. * * @return array */ protected function getFormattedTemplates() { if (!isset($this->formattedData['templates'])) { $this->formattedData['templates'] = array(); if ($this->options['templates']['updateExisting'] || $this->options['templates']['createMissing']) { $this->formattedData['templates'] = $this->formatter->getTemplates(); } } return $this->formattedData['templates']; }