src/Entity/Articles/ArticleDateDispo.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Articles;
  3. use App\Repository\Articles\ArticleDateDispoRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Table(name="article__date_dispo")
  7.  * @ORM\Entity(repositoryClass=ArticleDateDispoRepository::class)
  8.  */
  9. class ArticleDateDispo
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\Column(type="datetime", nullable=true)
  19.      */
  20.     private $date;
  21.     /**
  22.      * @ORM\ManyToOne(targetEntity="App\Entity\Articles\Article")
  23.      * @ORM\JoinColumn(nullable=true)
  24.      */
  25.     private $article;
  26.     /**
  27.      * @ORM\Column(type="float", nullable=true)
  28.      */
  29.     private $quantite;
  30.     public function getId(): ?int
  31.     {
  32.         return $this->id;
  33.     }
  34.     public function getDate(): ?\DateTimeInterface
  35.     {
  36.         return $this->date;
  37.     }
  38.     public function setDate(?\DateTimeInterface $date): self
  39.     {
  40.         $this->date $date;
  41.         return $this;
  42.     }
  43.     public function getArticle(): ?Article
  44.     {
  45.         return $this->article;
  46.     }
  47.     public function setArticle(?Article $article): self
  48.     {
  49.         $this->article $article;
  50.         return $this;
  51.     }
  52.     public function getQuantite(): ?float
  53.     {
  54.         return $this->quantite;
  55.     }
  56.     public function setQuantite(?float $quantite): self
  57.     {
  58.         $this->quantite $quantite;
  59.         return $this;
  60.     }
  61. }