<?php

namespace AppBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * QuestionAnswer
 *
 * @ORM\Table(name="question_answer")
 * @ORM\Entity(repositoryClass="AppBundle\Repository\QuestionAnswerRepository")
 */
class QuestionAnswer
{
    /**
     * @var int
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var string
     *
     * @ORM\Column(name="question", type="text")
     */
    private $question;

    /**
     * @var string
     *
     * @ORM\Column(name="answer", type="text")
     */
    private $answer;
 
	/**
	 * @ORM\ManyToOne(targetEntity="AppBundle\Entity\Interview", inversedBy="questionanswers")
	 * @ORM\JoinColumn(nullable=true)
	*/
	private $interview;


    /**
     * Get id
     *
     * @return int
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set question
     *
     * @param string $question
     *
     * @return QuestionAnswer
     */
    public function setQuestion($question)
    {
        $this->question = $question;

        return $this;
    }

    /**
     * Get question
     *
     * @return string
     */
    public function getQuestion()
    {
        return $this->question;
    }

    /**
     * Set answer
     *
     * @param string $answer
     *
     * @return QuestionAnswer
     */
    public function setAnswer($answer)
    {
        $this->answer = $answer;

        return $this;
    }

    /**
     * Get answer
     *
     * @return string
     */
    public function getAnswer()
    {
        return $this->answer;
    }

    /**
     * Set interview
     *
     * @param \AppBundle\Entity\Interview $interview
     *
     * @return QuestionAnswer
     */
    public function setInterview(\AppBundle\Entity\Interview $interview)
    {
        $this->interview = $interview;

        return $this;
    }

    /**
     * Get interview
     *
     * @return \AppBundle\Entity\Interview
     */
    public function getInterview()
    {
        return $this->interview;
    }
}
