コード例 #1
0
 public function testSetInterviewQuestion()
 {
     $alternative = new InterviewQuestionAlternative();
     $intQuestion = new InterviewQuestion();
     $alternative->setInterviewQuestion($intQuestion);
     $this->assertEquals($intQuestion, $alternative->getInterviewQuestion());
 }
コード例 #2
0
ファイル: InterviewQuestion.php プロジェクト: aestene/webpage
 /**
  * Add alternatives
  *
  * @param \AppBundle\Entity\InterviewQuestionAlternative $alternatives
  * @return InterviewQuestion
  */
 public function addAlternative(\AppBundle\Entity\InterviewQuestionAlternative $alternatives)
 {
     $this->alternatives[] = $alternatives;
     $alternatives->setInterviewQuestion($this);
     return $this;
 }