src/Database/Domain/Entity/User/NotRegisteredEmail.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Database\Domain\Entity\User;
  3. use App\Database\Domain\Entity\AbstractEntity;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @author Anton Zakharuk <anton.zakharuk@cosmonova.net>
  7.  *
  8.  * @ORM\Entity()
  9.  */
  10. class NotRegisteredEmail extends AbstractEntity
  11. {
  12.     /**
  13.      * @ORM\Column(type="string", nullable=false, unique=true)
  14.      */
  15.     private string $email;
  16.     /**
  17.      * @ORM\Column(type="boolean", nullable=false)
  18.      */
  19.     private bool $isNotified;
  20.     public function __construct($idstring $email)
  21.     {
  22.         $this->id $id;
  23.         $this->email $email;
  24.         $this->isNotified false;
  25.     }
  26.     public function getEmail(): string
  27.     {
  28.         return $this->email;
  29.     }
  30.     public function setEmail(string $email): void
  31.     {
  32.         $this->email $email;
  33.     }
  34.     public function isNotified(): bool
  35.     {
  36.         return $this->isNotified;
  37.     }
  38.     public function setIsNotified(bool $isNotified): void
  39.     {
  40.         $this->isNotified $isNotified;
  41.     }
  42. }