src/Entity/CheckNuked.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Entity(repositoryClass="App\Repository\CheckNukedRepository")
  6.  * @ORM\Table(name="checks_nuked", indexes={@ORM\Index(name="id_index", columns={"id"})})
  7.  */
  8. class CheckNuked
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\Column(type="integer")
  13.      * @ORM\GeneratedValue(strategy="AUTO")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="string", length=254, nullable=false)
  18.      */
  19.     private $domain;
  20.     /**
  21.      * @ORM\Column(type="string", length=254, nullable=true)
  22.      */
  23.     private $url;
  24.     /**
  25.      * @ORM\Column(type="text", nullable=true)
  26.      */
  27.     private $comment;
  28.     /**
  29.      * @ORM\Column(type="datetime", nullable=false)
  30.      */
  31.     private $created_at;
  32.     /**
  33.      * @ORM\ManyToOne(targetEntity="App\Entity\Brand", inversedBy="checkNukeds")
  34.      * @ORM\JoinColumn(name="brand_id", referencedColumnName="id", nullable=false)
  35.      */
  36.     private $brand;
  37.     /**
  38.      * @ORM\ManyToOne(targetEntity="App\Entity\User", inversedBy="checkNukeds")
  39.      * @ORM\JoinColumn(name="user_id", referencedColumnName="id", nullable=false)
  40.      */
  41.     private $user;
  42.     public function getId(): ?int
  43.     {
  44.         return $this->id;
  45.     }
  46.     public function getDomain(): ?string
  47.     {
  48.         return $this->domain;
  49.     }
  50.     public function setDomain(string $domain): self
  51.     {
  52.         $this->domain $domain;
  53.         return $this;
  54.     }
  55.     public function getUrl(): ?string
  56.     {
  57.         return $this->url;
  58.     }
  59.     public function setUrl(?string $url): self
  60.     {
  61.         $this->url $url;
  62.         return $this;
  63.     }
  64.     public function getComment(): ?string
  65.     {
  66.         return $this->comment;
  67.     }
  68.     public function setComment(?string $comment): self
  69.     {
  70.         $this->comment $comment;
  71.         return $this;
  72.     }
  73.     public function getCreatedAt(): ?\DateTimeInterface
  74.     {
  75.         return $this->created_at;
  76.     }
  77.     public function setCreatedAt(\DateTimeInterface $created_at): self
  78.     {
  79.         $this->created_at $created_at;
  80.         return $this;
  81.     }
  82.     public function getBrand(): ?Brand
  83.     {
  84.         return $this->brand;
  85.     }
  86.     public function setBrand(?Brand $brand): self
  87.     {
  88.         $this->brand $brand;
  89.         return $this;
  90.     }
  91.     public function getUser(): ?User
  92.     {
  93.         return $this->user;
  94.     }
  95.     public function setUser(?User $user): self
  96.     {
  97.         $this->user $user;
  98.         return $this;
  99.     }
  100. }