src/Entity/DnsitHour.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * DnsitHour
  6.  *
  7.  * @ORM\Table(name="dnsit_hour")
  8.  * @ORM\Entity(repositoryClass="App\Repository\DnsitHourRepository")
  9.  */
  10. class DnsitHour
  11. {
  12.     /**
  13.      * @var \DateTime|null
  14.      *
  15.      * @ORM\Column(name="date_from", type="datetime", nullable=true)
  16.      */
  17.     private $dateFrom;
  18.     /**
  19.      * @var \DateTime|null
  20.      *
  21.      * @ORM\Column(name="date_to", type="datetime", nullable=true)
  22.      */
  23.     private $dateTo;
  24.     /**
  25.      * @var bool|null
  26.      *
  27.      * @ORM\Column(name="has_hours", type="boolean", nullable=true)
  28.      */
  29.     private $hasHours;
  30.     /**
  31.      * @var int|null
  32.      *
  33.      * @ORM\Column(name="entity", type="bigint", nullable=true)
  34.      */
  35.     private $entity;
  36.     /**
  37.      * @var int|null
  38.      *
  39.      * @ORM\Column(name="marking", type="smallint", nullable=true)
  40.      */
  41.     private $marking;
  42.     /**
  43.      * @var string|null
  44.      *
  45.      * @ORM\Column(name="params", type="text", nullable=true)
  46.      */
  47.     private $params;
  48.     /**
  49.      * @var \DateTime|null
  50.      *
  51.      * @ORM\Column(name="created_at", type="datetime", nullable=true)
  52.      */
  53.     private $createdAt;
  54.     /**
  55.      * @var int|null
  56.      *
  57.      * @ORM\Column(name="created_by", type="bigint", nullable=true)
  58.      */
  59.     private $createdBy;
  60.     /**
  61.      * @var \DateTime|null
  62.      *
  63.      * @ORM\Column(name="updated_at", type="datetime", nullable=true)
  64.      */
  65.     private $updatedAt;
  66.     /**
  67.      * @var int|null
  68.      *
  69.      * @ORM\Column(name="updated_by", type="bigint", nullable=true)
  70.      */
  71.     private $updatedBy;
  72.     /**
  73.      * @var int
  74.      *
  75.      * @ORM\Column(name="id", type="bigint")
  76.      * @ORM\Id
  77.      * @ORM\GeneratedValue(strategy="IDENTITY")
  78.      */
  79.     private $id;
  80.     /**
  81.      * @var \App\Entity\DnsitProduct
  82.      *
  83.      * @ORM\ManyToOne(targetEntity="App\Entity\DnsitProduct", inversedBy="hours")
  84.      * @ORM\JoinColumns({
  85.      *   @ORM\JoinColumn(name="product_id", referencedColumnName="id", onDelete="CASCADE")
  86.      * })
  87.      */
  88.     private $product;
  89.     /**
  90.      * @var \App\Entity\DnsitTranslateProduct
  91.      *
  92.      * @ORM\ManyToOne(targetEntity="App\Entity\DnsitTranslateProduct")
  93.      * @ORM\JoinColumns({
  94.      *   @ORM\JoinColumn(name="translate_product_id", referencedColumnName="id", onDelete="CASCADE")
  95.      * })
  96.      */
  97.     private $translateProduct;
  98.     public function __toString(){
  99.         return "DnsitHour";
  100.     }
  101.     public function getDateFrom(): ?\DateTimeInterface
  102.     {
  103.         return $this->dateFrom;
  104.     }
  105.     public function setDateFrom(?\DateTimeInterface $dateFrom): self
  106.     {
  107.         $this->dateFrom $dateFrom;
  108.         return $this;
  109.     }
  110.     public function getDateTo(): ?\DateTimeInterface
  111.     {
  112.         return $this->dateTo;
  113.     }
  114.     public function setDateTo(?\DateTimeInterface $dateTo): self
  115.     {
  116.         $this->dateTo $dateTo;
  117.         return $this;
  118.     }
  119.     public function getHasHours(): ?bool
  120.     {
  121.         return $this->hasHours;
  122.     }
  123.     public function setHasHours(?bool $hasHours): self
  124.     {
  125.         $this->hasHours $hasHours;
  126.         return $this;
  127.     }
  128.     public function getEntity(): ?int
  129.     {
  130.         return $this->entity;
  131.     }
  132.     public function setEntity(?int $entity): self
  133.     {
  134.         $this->entity $entity;
  135.         return $this;
  136.     }
  137.     public function getMarking(): ?int
  138.     {
  139.         return $this->marking;
  140.     }
  141.     public function setMarking(?int $marking): self
  142.     {
  143.         $this->marking $marking;
  144.         return $this;
  145.     }
  146.     public function getParams(): ?string
  147.     {
  148.         return $this->params;
  149.     }
  150.     public function setParams(?string $params): self
  151.     {
  152.         $this->params $params;
  153.         return $this;
  154.     }
  155.     public function getCreatedAt(): ?\DateTimeInterface
  156.     {
  157.         return $this->createdAt;
  158.     }
  159.     public function setCreatedAt(?\DateTimeInterface $createdAt): self
  160.     {
  161.         $this->createdAt $createdAt;
  162.         return $this;
  163.     }
  164.     public function getCreatedBy(): ?int
  165.     {
  166.         return $this->createdBy;
  167.     }
  168.     public function setCreatedBy(?int $createdBy): self
  169.     {
  170.         $this->createdBy $createdBy;
  171.         return $this;
  172.     }
  173.     public function getUpdatedAt(): ?\DateTimeInterface
  174.     {
  175.         return $this->updatedAt;
  176.     }
  177.     public function setUpdatedAt(?\DateTimeInterface $updatedAt): self
  178.     {
  179.         $this->updatedAt $updatedAt;
  180.         return $this;
  181.     }
  182.     public function getUpdatedBy(): ?int
  183.     {
  184.         return $this->updatedBy;
  185.     }
  186.     public function setUpdatedBy(?int $updatedBy): self
  187.     {
  188.         $this->updatedBy $updatedBy;
  189.         return $this;
  190.     }
  191.     public function getId(): ?int
  192.     {
  193.         return $this->id;
  194.     }
  195.     public function getProduct(): ?DnsitProduct
  196.     {
  197.         return $this->product;
  198.     }
  199.     public function setProduct(?DnsitProduct $product): self
  200.     {
  201.         $this->product $product;
  202.         return $this;
  203.     }
  204.     public function getTranslateProduct(): ?DnsitTranslateProduct
  205.     {
  206.         return $this->translateProduct;
  207.     }
  208.     public function setTranslateProduct(?DnsitTranslateProduct $translateProduct): self
  209.     {
  210.         $this->translateProduct $translateProduct;
  211.         return $this;
  212.     }
  213. }