public function getTemplate($type) { if (array_key_exists($type, $this->templates)) { return $this->templates[$type]; } return; }