src/Entity/ShopOrderProductConsommation.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ShopOrderProductConsommationRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Gedmo\Mapping\Annotation as Gedmo;
  6. /**
  7.  * @ORM\Entity(repositoryClass=ShopOrderProductConsommationRepository::class)
  8.  */
  9. class ShopOrderProductConsommation {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\ManyToOne(targetEntity=ShopOrderProduct::class, inversedBy="ShopOrderProductConsommations")
  18.      * @ORM\JoinColumn(nullable=false)
  19.      */
  20.     private $shop_order_product;
  21.     /**
  22.      * @ORM\ManyToOne(targetEntity=User::class, inversedBy="ShopOrderProductConsommations")
  23.      * @ORM\JoinColumn(nullable=false)
  24.      */
  25.     private $user;
  26.     /**
  27.      * @ORM\Column(type="integer")
  28.      */
  29.     private $depense;
  30.     /**
  31.      * @ORM\Column(type="date")
  32.      */
  33.     private $date_debut;
  34.     /**
  35.      * @ORM\Column(type="date")
  36.      */
  37.     private $date_fin;
  38.     /**
  39.     * @ORM\Column(type="datetime")
  40.     * @Gedmo\Timestampable(on="create")
  41.     */
  42.     private $createdAt;
  43.     /**
  44.      * @ORM\Column(type="datetime")
  45.      * @Gedmo\Timestampable(on="update")
  46.      */
  47.     private $updatedAt;
  48.     /**
  49.      * @ORM\ManyToOne(targetEntity=ShopCategorie::class, inversedBy="ShopOrderProductConsommations")
  50.      * @ORM\JoinColumn(nullable=false)
  51.      */
  52.     private $categorie;
  53.     public function getId(): ?int {
  54.                  return $this->id;
  55.              }
  56.     public function getShopOrderProduct(): ?ShopOrderProduct {
  57.                  return $this->shop_order_product;
  58.              }
  59.     public function setShopOrderProduct(?ShopOrderProduct $shop_order_product): self {
  60.                  $this->shop_order_product $shop_order_product;
  61.                            
  62.                  return $this;
  63.              }
  64.     public function getUser(): ?User {
  65.                  return $this->user;
  66.              }
  67.     public function setUser(?User $user): self {
  68.                  $this->user $user;
  69.                            
  70.                  return $this;
  71.              }
  72.     public function getDepense(): ?int {
  73.                  return $this->depense;
  74.              }
  75.     public function setDepense(int $depense): self {
  76.                  $this->depense $depense;
  77.                            
  78.                  return $this;
  79.              }
  80.     public function getDateDebut(): ?\DateTimeInterface {
  81.                  return $this->date_debut;
  82.              }
  83.     public function setDateDebut(\DateTimeInterface $date_debut): self {
  84.                  $this->date_debut $date_debut;
  85.          
  86.                  return $this;
  87.              }
  88.     public function getDateFin(): ?\DateTimeInterface {
  89.                  return $this->date_fin;
  90.              }
  91.     public function setDateFin(\DateTimeInterface $date_fin): self {
  92.                  $this->date_fin $date_fin;
  93.          
  94.                  return $this;
  95.              }
  96.     public function getCreatedAt(): ?\DateTimeInterface {
  97.                  return $this->createdAt;
  98.              }
  99.     public function setCreatedAt(?\DateTimeInterface $createdAt): self {
  100.                  $this->createdAt $createdAt;
  101.                                                                               
  102.                  return $this;
  103.              }
  104.     public function getUpdatedAt(): ?\DateTimeInterface {
  105.                  return $this->updatedAt;
  106.              }
  107.     public function setUpdatedAt(?\DateTimeInterface $updatedAt): self {
  108.                  $this->updatedAt $updatedAt;
  109.                                                                               
  110.                  return $this;
  111.              }
  112.     public function getCategorie(): ?ShopCategorie
  113.     {
  114.         return $this->categorie;
  115.     }
  116.     public function setCategorie(?ShopCategorie $categorie): self
  117.     {
  118.         $this->categorie $categorie;
  119.         return $this;
  120.     }
  121. }