/** * Add a question to the FAQ database * * @param $submitter * @param $text * @param $socCode * * @return \Questions */ public function addQuestion($submitter, $text, $socCode) { $question = new \Questions(); $question->setSocCode($socCode); $question->setQuestion($text); $question->setSubmitter($submitter); $question->save(); $eligibleExperts = $this->findExperts($socCode); $this->addQuestionToExpertQueue($question, $eligibleExperts); return $question; }