Exemplo n.º 1
0
 /**
  *
  * @return \Gems_Tracker_Source_SourceInterface
  */
 public function getSource()
 {
     if (!$this->_source && isset($this->_gemsSurvey['gsu_id_source']) && $this->_gemsSurvey['gsu_id_source']) {
         $this->_source = $this->tracker->getSource($this->_gemsSurvey['gsu_id_source']);
         if (!$this->_source) {
             throw new \Gems_Exception('No source for exists for source ' . $this->_gemsSurvey['gsu_id_source'] . '.');
         }
     }
     return $this->_source;
 }