<?php

namespace Template\Entity;

/**
* @Entity
* @Table(name="questions")
*/
class Questions
{
    /**
    * @Id
    * @GeneratedValue
    * @Column(type="integer")
    */
    private $id;
    /**
    * @Column(type="string")
    */
    private $question;
    /**
    * @Column(type="string", length=2000)
    */
    private $answer;
    
    public function getId(): int
    {
        return $this->id;
    }

    public function setId(int $id): self
    {
        $this->id = $id;

        return $this;
    }

    public function getQuestion(): string
    {
        return $this->question;
    }

    public function setQuestion(string $question): self
    {
        $this->question = $question;

        return $this;
    }

    public function getAnswer(): string
    {
        return $this->answer;
    }

    public function setAnswer(string $answer): self
    {
        $this->answer = $answer;

        return $this;
    }
}
