src/Entity/CRM/AdminNotificationSettings.php line 9

  1. <?php
  2. namespace App\Entity\CRM;
  3. use App\Repository\AdminNotoficationRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassAdminNotoficationRepository::class)]
  6. class AdminNotificationSettings
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\ManyToOne(inversedBy'adminNotificationSettings')]
  13.     private ?Admin $admin null;
  14.     #[ORM\ManyToOne]
  15.     #[ORM\JoinColumn(nullablefalse)]
  16.     private ?branch $branch null;
  17.     #[ORM\Column]
  18.     private ?bool $notification null;
  19.     public function getId(): ?int
  20.     {
  21.         return $this->id;
  22.     }
  23.     public function getAdmin(): ?Admin
  24.     {
  25.         return $this->admin;
  26.     }
  27.     public function setAdmin(?Admin $admin): static
  28.     {
  29.         $this->admin $admin;
  30.         return $this;
  31.     }
  32.     public function getBranch(): ?branch
  33.     {
  34.         return $this->branch;
  35.     }
  36.     public function setBranch(?branch $branch): static
  37.     {
  38.         $this->branch $branch;
  39.         return $this;
  40.     }
  41.     public function isNotification(): ?bool
  42.     {
  43.         return $this->notification;
  44.     }
  45.     public function setNotification(bool $notification): static
  46.     {
  47.         $this->notification $notification;
  48.         return $this;
  49.     }
  50. }