src/Entity/Gos/ProductReleaseNotify.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Gos;
  3. use App\Repository\Gos\ProductReleaseNotifyRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
  6. /**
  7.  * @ORM\Entity(repositoryClass=ProductReleaseNotifyRepository::class)
  8.  * @UniqueEntity(fields={"productRelease", "user"})
  9.  * @ORM\HasLifecycleCallbacks()
  10.  */
  11. class ProductReleaseNotify
  12. {
  13.     /**
  14.      * @ORM\Id
  15.      * @ORM\GeneratedValue
  16.      * @ORM\Column(type="integer")
  17.      */
  18.     private $id;
  19.     /**
  20.      * @ORM\ManyToOne(targetEntity=ProductRelease::class, inversedBy="productReleaseNotifies")
  21.      * @ORM\JoinColumn(nullable=false)
  22.      */
  23.     private $productRelease;
  24.     /**
  25.      * @ORM\ManyToOne(targetEntity=User::class, inversedBy="productReleaseNotifies")
  26.      * @ORM\JoinColumn(nullable=false)
  27.      */
  28.     private $user;
  29.     /**
  30.      * @ORM\Column(type="boolean", options={"default": false})
  31.      */
  32.     private $sendFirst false;
  33.     /**
  34.      * @ORM\Column(type="datetime", nullable=true)
  35.      */
  36.     private $mailSentAt;
  37.     /**
  38.      * @ORM\Column(type="string", length=255, nullable=true)
  39.      */
  40.     private $sentFailureReason;
  41.     /**
  42.      * @ORM\Column(type="datetime", nullable=true)
  43.      */
  44.     private $smsSentAt;
  45.     /**
  46.      * @ORM\Column(type="boolean", options={"default": true})
  47.      */
  48.     private $sendPaperReleaseNotify true;
  49.     /**
  50.      * @ORM\Column(type="datetime", nullable=true)
  51.      */
  52.     private $mailAboutPaperReleaseSentAt;
  53.     /**
  54.      * @ORM\Column(type="datetime")
  55.      */
  56.     private $createdAt;
  57.     /** @ORM\PrePersist() */
  58.     public function prePersist()
  59.     {
  60.         $this->createdAt = new \DateTime();
  61.     }
  62.     public function getId(): ?int
  63.     {
  64.         return $this->id;
  65.     }
  66.     public function getProductRelease(): ?ProductRelease
  67.     {
  68.         return $this->productRelease;
  69.     }
  70.     public function setProductRelease(?ProductRelease $productRelease): self
  71.     {
  72.         $this->productRelease $productRelease;
  73.         return $this;
  74.     }
  75.     public function getUser(): ?User
  76.     {
  77.         return $this->user;
  78.     }
  79.     public function setUser(?User $user): self
  80.     {
  81.         $this->user $user;
  82.         return $this;
  83.     }
  84.     public function getSendFirst(): ?bool
  85.     {
  86.         return $this->sendFirst;
  87.     }
  88.     public function setSendFirst(bool $sendFirst): self
  89.     {
  90.         $this->sendFirst $sendFirst;
  91.         return $this;
  92.     }
  93.     public function getMailSentAt(): ?\DateTimeInterface
  94.     {
  95.         return $this->mailSentAt;
  96.     }
  97.     public function setMailSentAt(?\DateTimeInterface $mailSentAt): self
  98.     {
  99.         $this->mailSentAt $mailSentAt;
  100.         return $this;
  101.     }
  102.     public function getSentFailureReason(): ?string
  103.     {
  104.         return $this->sentFailureReason;
  105.     }
  106.     public function setSentFailureReason(?string $sentFailureReason): self
  107.     {
  108.         $this->sentFailureReason $sentFailureReason;
  109.         return $this;
  110.     }
  111.     public function getSmsSentAt(): ?\DateTimeInterface
  112.     {
  113.         return $this->smsSentAt;
  114.     }
  115.     public function setSmsSentAt(?\DateTimeInterface $smsSentAt): self
  116.     {
  117.         $this->smsSentAt $smsSentAt;
  118.         return $this;
  119.     }
  120.     public function getSendPaperReleaseNotify(): ?bool
  121.     {
  122.         return $this->sendPaperReleaseNotify;
  123.     }
  124.     public function setSendPaperReleaseNotify(bool $sendPaperReleaseNotify): self
  125.     {
  126.         $this->sendPaperReleaseNotify $sendPaperReleaseNotify;
  127.         return $this;
  128.     }
  129.     public function getMailAboutPaperReleaseSentAt(): ?\DateTimeInterface
  130.     {
  131.         return $this->mailAboutPaperReleaseSentAt;
  132.     }
  133.     public function setMailAboutPaperReleaseSentAt(?\DateTimeInterface $mailAboutPaperReleaseSentAt): self
  134.     {
  135.         $this->mailAboutPaperReleaseSentAt $mailAboutPaperReleaseSentAt;
  136.         return $this;
  137.     }
  138.     public function getCreatedAt(): ?\DateTimeInterface
  139.     {
  140.         return $this->createdAt;
  141.     }
  142.     public function setCreatedAt(\DateTimeInterface $createdAt): self
  143.     {
  144.         $this->createdAt $createdAt;
  145.         return $this;
  146.     }
  147. }