src/Entity/Notification.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\NotificationRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use App\Traits\EntityDateTimeAbleTrait;
  6. #[ORM\Entity(repositoryClassNotificationRepository::class)]
  7. #[ORM\HasLifecycleCallbacks]
  8. class Notification
  9. {
  10.     use EntityDateTimeAbleTrait;
  11.     const TYPE_IDENTITY 1;
  12.     const TYPE_RESIDENCE_PERMIT 2;
  13.     const EXPRIRE_TYPE_TWO_MONTH 60;
  14.     const EXPRIRE_TYPE_ONE_MONTH 30;
  15.     const EXPRIRE_TYPE_THREE_WEEK 21;
  16.     const EXPRIRE_TYPE_TWO_WEEK 14;
  17.     const EXPRIRE_TYPE_ONE_WEEK 7;
  18.     #[ORM\Id]
  19.     #[ORM\GeneratedValue]
  20.     #[ORM\Column(type'integer')]
  21.     private $id;
  22.     #[ORM\ManyToOne(targetEntityProfile::class, inversedBy'notifications')]
  23.     private ?\App\Entity\Profile $profile null;
  24.     #[ORM\Column(type'integer'nullabletrue)]
  25.     private ?int $type null;
  26.     #[ORM\Column(type'integer'nullabletrue)]
  27.     private ?int $expireType null;
  28.     #[ORM\Column(type'boolean'nullabletrue)]
  29.     private ?bool $isSeen null;
  30.     public function getId(): ?int
  31.     {
  32.         return $this->id;
  33.     }
  34.     public function getProfile(): ?Profile
  35.     {
  36.         return $this->profile;
  37.     }
  38.     public function setProfile(?Profile $profile): self
  39.     {
  40.         $this->profile $profile;
  41.         return $this;
  42.     }
  43.     public function getType(): ?int
  44.     {
  45.         return $this->type;
  46.     }
  47.     public function setType(?int $type): self
  48.     {
  49.         $this->type $type;
  50.         return $this;
  51.     }
  52.     public function getExpireType(): ?int
  53.     {
  54.         return $this->expireType;
  55.     }
  56.     public function setExpireType(?int $expireType): self
  57.     {
  58.         $this->expireType $expireType;
  59.         return $this;
  60.     }
  61.     public function getIsSeen(): ?bool
  62.     {
  63.         return $this->isSeen;
  64.     }
  65.     public function setIsSeen(?bool $isSeen): self
  66.     {
  67.         $this->isSeen $isSeen;
  68.         return $this;
  69.     }
  70. }