src/Entity/Articles/ArticleComplementOption.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Articles;
  3. use App\Repository\Articles\ArticleComplementOptionRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Table("article__article_complement_option")
  7.  * @ORM\Entity(repositoryClass=ArticleComplementOptionRepository::class)
  8.  */
  9. class ArticleComplementOption
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\Column(type="integer", nullable=true)
  19.      */
  20.     private $diviseur;
  21.     /**
  22.      * @ORM\Column(type="integer", nullable=true)
  23.      */
  24.     private $multiple;
  25.     /**
  26.      * @ORM\Column(type="string", length=255, nullable=true)
  27.      */
  28.     private $type;
  29.     /**
  30.      * @ORM\Column(type="boolean", nullable=true)
  31.      */
  32.     private $indifferent;
  33.     /**
  34.      * @ORM\ManyToOne(targetEntity="App\Entity\Articles\Article")
  35.      * @ORM\JoinColumn(nullable=true)
  36.      */
  37.     private $parent;
  38.     /**
  39.      * @ORM\ManyToOne(targetEntity="App\Entity\Articles\Article")
  40.      * @ORM\JoinColumn(nullable=true)
  41.      */
  42.     private $enfant;
  43.     public function getId(): ?int
  44.     {
  45.         return $this->id;
  46.     }
  47.     public function getDiviseur(): ?int
  48.     {
  49.         return $this->diviseur;
  50.     }
  51.     public function setDiviseur(?int $diviseur): self
  52.     {
  53.         $this->diviseur $diviseur;
  54.         return $this;
  55.     }
  56.     public function getMultiple(): ?int
  57.     {
  58.         return $this->multiple;
  59.     }
  60.     public function setMultiple(?int $multiple): self
  61.     {
  62.         $this->multiple $multiple;
  63.         return $this;
  64.     }
  65.     public function getType(): ?string
  66.     {
  67.         return $this->type;
  68.     }
  69.     public function setType(?string $type): self
  70.     {
  71.         $this->type $type;
  72.         return $this;
  73.     }
  74.     public function isIndifferent(): ?bool
  75.     {
  76.         return $this->indifferent;
  77.     }
  78.     public function setIndifferent(?bool $indifferent): self
  79.     {
  80.         $this->indifferent $indifferent;
  81.         return $this;
  82.     }
  83.     public function getParent(): ?Article
  84.     {
  85.         return $this->parent;
  86.     }
  87.     public function setParent(?Article $parent): self
  88.     {
  89.         $this->parent $parent;
  90.         return $this;
  91.     }
  92.     public function getEnfant(): ?Article
  93.     {
  94.         return $this->enfant;
  95.     }
  96.     public function setEnfant(?Article $enfant): self
  97.     {
  98.         $this->enfant $enfant;
  99.         return $this;
  100.     }
  101. }