src/Entity/Notifications.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\NotificationsRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassNotificationsRepository::class)]
  6. class Notifications
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column(type'integer')]
  11.     private $id;
  12.     #[ORM\ManyToOne(targetEntityClinics::class, inversedBy'notifications')]
  13.     private $clinic;
  14.     #[ORM\Column(type'text'nullabletrue)]
  15.     private $notification;
  16.     #[ORM\Column(type'boolean'nullabletrue)]
  17.     private $isRead;
  18.     #[ORM\Column(type'boolean'nullabletrue)]
  19.     private $isActive;
  20.     #[ORM\Column(type'datetime')]
  21.     private $modified;
  22.     #[ORM\Column(type'datetime')]
  23.     private $created;
  24.     #[ORM\OneToOne(targetEntityAvailabilityTracker::class, inversedBy'notifications'cascade: ['persist''remove'])]
  25.     #[ORM\JoinColumn(name'availability_tracker_id'referencedColumnName'id'nullabletrue)]
  26.     private $availabilityTracker;
  27.     #[ORM\ManyToOne(targetEntityOrders::class, inversedBy'notifications')]
  28.     private $orders;
  29.     #[ORM\ManyToOne(targetEntityDistributors::class, inversedBy'notifications')]
  30.     private $distributor;
  31.     #[ORM\Column(type'integer'nullabletrue)]
  32.     private $isTracking;
  33.     #[ORM\Column(type'integer'nullabletrue)]
  34.     private $isOrder;
  35.     #[ORM\Column(type'integer')]
  36.     private $isMessage;
  37.     #[ORM\Column(type'boolean'nullabletrue)]
  38.     private $isReadDistributor;
  39.     public function __construct()
  40.     {
  41.         $this->setCreated(new \DateTime());
  42.         if ($this->getModified() == null) {
  43.             $this->setModified(new \DateTime());
  44.         }
  45.     }
  46.     public function getId(): ?int
  47.     {
  48.         return $this->id;
  49.     }
  50.     public function getClinic(): ?Clinics
  51.     {
  52.         return $this->clinic;
  53.     }
  54.     public function setClinic(?Clinics $clinic): self
  55.     {
  56.         $this->clinic $clinic;
  57.         return $this;
  58.     }
  59.     public function getNotification(): ?string
  60.     {
  61.         return $this->notification;
  62.     }
  63.     public function setNotification(string $notification): self
  64.     {
  65.         $this->notification $notification;
  66.         return $this;
  67.     }
  68.     public function getIsRead(): ?bool
  69.     {
  70.         return $this->isRead;
  71.     }
  72.     public function setIsRead(bool $isRead): self
  73.     {
  74.         $this->isRead $isRead;
  75.         return $this;
  76.     }
  77.     public function getIsActive(): ?bool
  78.     {
  79.         return $this->isActive;
  80.     }
  81.     public function setIsActive(?bool $isActive): self
  82.     {
  83.         $this->isActive $isActive;
  84.         return $this;
  85.     }
  86.     public function getModified(): ?\DateTimeInterface
  87.     {
  88.         return $this->modified;
  89.     }
  90.     public function setModified(\DateTimeInterface $modified): self
  91.     {
  92.         $this->modified $modified;
  93.         return $this;
  94.     }
  95.     public function getCreated(): ?\DateTimeInterface
  96.     {
  97.         return $this->created;
  98.     }
  99.     public function setCreated(\DateTimeInterface $created): self
  100.     {
  101.         $this->created $created;
  102.         return $this;
  103.     }
  104.     public function getAvailabilityTracker(): ?AvailabilityTracker
  105.     {
  106.         return $this->availabilityTracker;
  107.     }
  108.     public function setAvailabilityTracker(?AvailabilityTracker $availabilityTracker): self
  109.     {
  110.         $this->availabilityTracker $availabilityTracker;
  111.         return $this;
  112.     }
  113.     public function getOrders(): ?Orders
  114.     {
  115.         return $this->orders;
  116.     }
  117.     public function setOrders(?Orders $orders): self
  118.     {
  119.         $this->orders $orders;
  120.         return $this;
  121.     }
  122.     public function getDistributor(): ?Distributors
  123.     {
  124.         return $this->distributor;
  125.     }
  126.     public function setDistributor(?Distributors $distributor): self
  127.     {
  128.         $this->distributor $distributor;
  129.         return $this;
  130.     }
  131.     public function getIsTracking(): ?int
  132.     {
  133.         return $this->isTracking;
  134.     }
  135.     public function setIsTracking(?int $isTracking): self
  136.     {
  137.         $this->isTracking $isTracking;
  138.         return $this;
  139.     }
  140.     public function getIsOrder(): ?int
  141.     {
  142.         return $this->isOrder;
  143.     }
  144.     public function setIsOrder(?int $isOrder): self
  145.     {
  146.         $this->isOrder $isOrder;
  147.         return $this;
  148.     }
  149.     public function getIsMessage(): ?int
  150.     {
  151.         return $this->isMessage;
  152.     }
  153.     public function setIsMessage(int $isMessage): self
  154.     {
  155.         $this->isMessage $isMessage;
  156.         return $this;
  157.     }
  158.     public function getIsReadDistributor(): ?bool
  159.     {
  160.         return $this->isReadDistributor;
  161.     }
  162.     public function setIsReadDistributor(?bool $isReadDistributor): self
  163.     {
  164.         $this->isReadDistributor $isReadDistributor;
  165.         return $this;
  166.     }
  167. }