src/Entity/Faq.php line 14
- <?php
- namespace App\Entity;
- use Doctrine\DBAL\Types\Types;
- use Doctrine\ORM\Mapping as ORM;
- /**
- * Faq
- *
- * @ORM\Table("faq")
- * @ORM\Entity
- */
- class Faq
- {
- /**
- * @var integer
- *
- * @ORM\Column(name="id", type="integer")
- * @ORM\Id
- * @ORM\GeneratedValue(strategy="AUTO")
- */
- private $id;
- /**
- * @var string
- *
- * @ORM\Column(name="question", type="string", length=255)
- */
- private $question;
- /**
- * @var string
- *
- * @ORM\Column(name="answer", type="text")
- */
- private $answer;
- /**
- * @var string
- *
- * @ORM\Column(name="idioma", type="string", length=255, nullable=true)
- */
- private $idioma="es";
- /**
- * @var boolean
- *
- * @ORM\Column(name="popular", type="boolean")
- */
- private $popular;
- /**
- * @ORM\ManyToOne(targetEntity="FaqCategory", inversedBy="faqs", cascade={"persist"})
- * @ORM\JoinColumn(name="faqcategory_id", referencedColumnName="id"))
- */
- private $category;
- /**
- * Get id
- *
- * @return integer
- */
- public function getId()
- {
- return $this->id;
- }
- /**
- * Set question
- *
- * @param string $question
- * @return Faq
- */
- public function setQuestion($question)
- {
- $this->question = $question;
- return $this;
- }
- /**
- * Get question
- *
- * @return string
- */
- public function getQuestion()
- {
- return $this->question;
- }
- /**
- * @param mixed $Idioma(
- */
- public function setIdioma($idioma)
- {
- $this->idioma = $idioma;
- }
- /**
- * Get Idioma
- *
- * @return string
- */
- public function getIdioma()
- {
- return $this->idioma;
- }
- /**
- * @param string $Categoria
- */
- public function setCategoria($categoria)
- {
- $this->categoria = $categoria;
- }
- /**
- * Get Categoria
- *
- * @return string
- */
- public function getCategoria()
- {
- return $this->categoria;
- }
- /**
- * Set popular
- * @param boolean $popular
- */
- public function setPopular($popular)
- {
- $this->popular = $popular;
- }
- /**
- * Get popular
- *
- * @return boolean
- */
- public function getPopular()
- {
- return $this->popular;
- }
- /**
- * Set answer
- *
- * @param string $answer
- * @return Faq
- */
- public function setAnswer($answer)
- {
- $this->answer = $answer;
- return $this;
- }
- /**
- * Get answer
- *
- * @return string
- */
- public function getAnswer()
- {
- return $this->answer;
- }
- public function isPopular(): ?bool
- {
- return $this->popular;
- }
- public function getCategory(): ?FaqCategory
- {
- return $this->category;
- }
- public function setCategory(?FaqCategory $category): self
- {
- $this->category = $category;
- return $this;
- }
- }