public function getParse() { if (starts_with($this->data['template'], 'boot')) { return 'Bt'; } else { return 'Mt'; } throw new \Exception('Template Error'); }