src/Entity/DnsitProductDispo.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Entity(repositoryClass="App\Repository\DnsitProductDispoRepository")
  6.  */
  7. class DnsitProductDispo
  8. {
  9.     /**
  10.      * @ORM\Id()
  11.      * @ORM\GeneratedValue()
  12.      * @ORM\Column(type="integer")
  13.      */
  14.     private $id;
  15.     /**
  16.      * @ORM\ManyToOne(targetEntity="App\Entity\DnsitProduct", inversedBy="dispos")
  17.      * @ORM\JoinColumn(nullable=false)
  18.      */
  19.     private $product;
  20.     /**
  21.      * @ORM\Column(type="datetime")
  22.      */
  23.     private $date;
  24.     /**
  25.      * @ORM\Column(type="integer")
  26.      */
  27.     private $state;
  28.     /**
  29.      * @ORM\ManyToOne(targetEntity="App\Entity\DnsitTranslateProduct", inversedBy="dispos")
  30.      */
  31.     private $translateProduct;
  32.     public function getId(): ?int
  33.     {
  34.         return $this->id;
  35.     }
  36.     public function getProduct(): ?DnsitProduct
  37.     {
  38.         return $this->product;
  39.     }
  40.     public function setProduct(?DnsitProduct $product): self
  41.     {
  42.         $this->product $product;
  43.         return $this;
  44.     }
  45.     public function getDate(): ?\DateTimeInterface
  46.     {
  47.         return $this->date;
  48.     }
  49.     public function setDate(\DateTimeInterface $date): self
  50.     {
  51.         $this->date $date;
  52.         return $this;
  53.     }
  54.     public function getState(): ?int
  55.     {
  56.         return $this->state;
  57.     }
  58.     public function setState(int $state): self
  59.     {
  60.         $this->state $state;
  61.         return $this;
  62.     }
  63.     public function getTranslateProduct(): ?DnsitTranslateProduct
  64.     {
  65.         return $this->translateProduct;
  66.     }
  67.     public function setTranslateProduct(?DnsitTranslateProduct $translateProduct): self
  68.     {
  69.         $this->translateProduct $translateProduct;
  70.         return $this;
  71.     }
  72. }