src/Entity/Gos/EmailIndex.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Gos;
  3. use App\Repository\Gos\EmailIndexRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=EmailIndexRepository::class)
  7.  */
  8. class EmailIndex
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\Column(type="integer", nullable=false, unique=true)
  13.      */
  14.     private $emailId;
  15.     /**
  16.      * @ORM\Column(type="string", length=20)
  17.      */
  18.     private $shard;
  19.     public function getEmailId(): ?int
  20.     {
  21.         return $this->emailId;
  22.     }
  23.     public function setEmailId(?int $emailId): self
  24.     {
  25.         $this->emailId $emailId;
  26.         return $this;
  27.     }
  28.     public function getShard(): ?string
  29.     {
  30.         return $this->shard;
  31.     }
  32.     public function setShard(string $shard): self
  33.     {
  34.         $this->shard $shard;
  35.         return $this;
  36.     }
  37. }