src/Entity/System/ProductDate.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity\System;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * ProductDate
  6.  *
  7.  * @ORM\Table(name="ps_product_date")
  8.  *
  9.  * @ORM\Entity(repositoryClass="App\Repository\System\ProductDateRepository")
  10.  */
  11. class ProductDate
  12. {
  13.     /**
  14.      * @var Product
  15.      *
  16.      * @ORM\Id
  17.      *
  18.      * @ORM\ManyToOne(targetEntity="App\Entity\System\Product", inversedBy="productDates")
  19.      *
  20.      * @ORM\JoinColumn(name="id_product", referencedColumnName="id_product")
  21.      */
  22.     private $product;
  23.     /**
  24.      * @ORM\Id
  25.      *
  26.      * @var ProductAttribute
  27.      *
  28.      * @ORM\OneToOne (targetEntity="App\Entity\System\ProductAttribute", inversedBy="productDate")
  29.      *
  30.      * @ORM\JoinColumn(name="id_product_attribute", referencedColumnName="id_product_attribute")
  31.      */
  32.     private $productAttribute;
  33.     /**
  34.      * @var \DateTime|null
  35.      *
  36.      * @ORM\Column(name="date_upd", type="datetime", nullable=true)
  37.      */
  38.     private $dateUpd;
  39.     /**
  40.      * @var \DateTime|null
  41.      *
  42.      * @ORM\Column(name="date_description", type="datetime", nullable=true)
  43.      */
  44.     private $dateDescription;
  45.     /**
  46.      * @var \DateTime|null
  47.      *
  48.      * @ORM\Column(name="date_stock", type="datetime", nullable=true)
  49.      */
  50.     private $dateStock;
  51.     /**
  52.      * @var \DateTime|null
  53.      *
  54.      * @ORM\Column(name="date_images", type="datetime", nullable=true)
  55.      */
  56.     private $dateImages;
  57.     /**
  58.      * @var \DateTime|null
  59.      *
  60.      * @ORM\Column(name="date_api_publication", type="datetime", nullable=true)
  61.      */
  62.     private $dateApiPublication;
  63.     public function getProduct(): Product
  64.     {
  65.         return $this->product;
  66.     }
  67.     /**
  68.      * @param Product $product
  69.      *
  70.      * @return ProductDate
  71.      */
  72.     public function setProduct(Product $product): ProductDate
  73.     {
  74.         $this->product $product;
  75.         return $this;
  76.     }
  77.     /**
  78.      * @return ProductAttribute
  79.      */
  80.     public function getProductAttribute(): ProductAttribute
  81.     {
  82.         return $this->productAttribute;
  83.     }
  84.     /**
  85.      * @param ProductAttribute $productAttribute
  86.      *
  87.      * @return ProductDate
  88.      */
  89.     public function setProductAttribute(ProductAttribute $productAttribute): ProductDate
  90.     {
  91.         $this->productAttribute $productAttribute;
  92.         return $this;
  93.     }
  94.     /**
  95.      * @return \DateTime|null
  96.      */
  97.     public function getDateUpd(): ?\DateTime
  98.     {
  99.         return $this->dateUpd;
  100.     }
  101.     /**
  102.      * @param \DateTime|null $dateUpd
  103.      *
  104.      * @return ProductDate
  105.      */
  106.     public function setDateUpd(?\DateTime $dateUpd): ProductDate
  107.     {
  108.         $this->dateUpd $dateUpd;
  109.         return $this;
  110.     }
  111.     /**
  112.      * @return \DateTime|null
  113.      */
  114.     public function getDateDescription(): ?\DateTime
  115.     {
  116.         return $this->dateDescription;
  117.     }
  118.     /**
  119.      * @param \DateTime|null $dateDescription
  120.      *
  121.      * @return ProductDate
  122.      */
  123.     public function setDateDescription(?\DateTime $dateDescription): ProductDate
  124.     {
  125.         $this->dateDescription $dateDescription;
  126.         return $this;
  127.     }
  128.     public function getDateStock(): ?\DateTime
  129.     {
  130.         return $this->dateStock;
  131.     }
  132.     public function setDateStock(?\DateTime $dateStock): ProductDate
  133.     {
  134.         $this->dateStock $dateStock;
  135.         return $this;
  136.     }
  137.     public function getDateImages(): ?\DateTime
  138.     {
  139.         return $this->dateImages;
  140.     }
  141.     public function setDateImages(?\DateTime $dateImages): ProductDate
  142.     {
  143.         $this->dateImages $dateImages;
  144.         return $this;
  145.     }
  146.     public function getDateApiPublication(): ?\DateTime
  147.     {
  148.         return $this->dateApiPublication;
  149.     }
  150.     public function setDateApiPublication(?\DateTime $dateApiPublication): ProductDate
  151.     {
  152.         $this->dateApiPublication $dateApiPublication;
  153.         return $this;
  154.     }
  155. }