src/Entity/DomainBlacklist.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Entity(repositoryClass="App\Repository\DomainBlacklistRepository")
  6.  */
  7. class DomainBlacklist
  8. {
  9.     /**
  10.      * @ORM\Id()
  11.      * @ORM\GeneratedValue()
  12.      * @ORM\Column(type="bigint")
  13.      */
  14.     private $id;
  15.     
  16.     /**
  17.      * @ORM\Version @ORM\Column(type="integer")
  18.      */
  19.     private $version;
  20.     
  21.     /**
  22.      * @ORM\Column(type="string", length=255)
  23.      */
  24.     private $domain;
  25.     
  26.     public function getId ()
  27.     {
  28.         return $this->id;
  29.     }
  30.     
  31.     public function getVersion() {
  32.         return $this->version;
  33.     }
  34.     
  35.     public function getDomain(): ?string
  36.     {
  37.         return $this->domain;
  38.     }
  39.     
  40.     public function setDomain(string $domain null): self
  41.     {
  42.         $this->domain $domain $domain "";
  43.         return $this;
  44.     }
  45.     
  46.     public function __toString ()
  47.     {
  48.         return $this->domain $this->domain '';
  49.     }
  50. }