src/ProfileBundle/Entity/AffiliatesRequest.php line 19

Open in your IDE?
  1. <?php
  2. namespace App\ProfileBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use DateTime;
  5. /**
  6.  * @ORM\Table(
  7.  *     name="affiliates_request",
  8.  *     indexes={
  9.  *          @ORM\Index(name="ar_created_idx", columns={"created"}),
  10.  *          @ORM\Index(name="ar_email_idx", columns={"email"})
  11.  *     }
  12.  * )
  13.  * @ORM\Entity(repositoryClass="App\ProfileBundle\Repository\AffiliatesRequestRepository")
  14.  */
  15. class AffiliatesRequest
  16. {
  17.     /**
  18.      * @var int
  19.      *
  20.      * @ORM\Column(name="id", type="bigint", nullable=false)
  21.      * @ORM\Id
  22.      * @ORM\GeneratedValue(strategy="IDENTITY")
  23.      */
  24.     private $id;
  25.     /**
  26.      * @var string|null
  27.      * @ORM\Column(name="name", type="string")
  28.      */
  29.     protected ?string $name null;
  30.     /**
  31.      * @var string|null
  32.      * @ORM\Column(name="email", type="string")
  33.      */
  34.     protected ?string $email null;
  35.     /**
  36.      * @var string|null
  37.      * @ORM\Column(name="website", type="string")
  38.      */
  39.     protected ?string $website null;
  40.     /**
  41.      * @var string|null
  42.      * @ORM\Column(name="message", type="string")
  43.      */
  44.     protected ?string $message null;
  45.     /**
  46.      * @var DateTime
  47.      *
  48.      * @ORM\Column(name="created", type="datetime")
  49.      */
  50.     private $created;
  51.     /**
  52.      * @return int|null
  53.      */
  54.     public function getId(): ?int
  55.     {
  56.         return $this->id;
  57.     }
  58.     /**
  59.      * @param int $id
  60.      * @return $this
  61.      */
  62.     public function setId(int $id): self
  63.     {
  64.         $this->id $id;
  65.         return $this;
  66.     }
  67.     /**
  68.      * @return string|null
  69.      */
  70.     public function getName(): ?string
  71.     {
  72.         return $this->name;
  73.     }
  74.     /**
  75.      * @param string $name
  76.      * @return self
  77.      */
  78.     public function setName(string $name): self
  79.     {
  80.         $this->name $name;
  81.         return $this;
  82.     }
  83.     /**
  84.      * @return string|null
  85.      */
  86.     public function getEmail(): ?string
  87.     {
  88.         return $this->email;
  89.     }
  90.     /**
  91.      * @param string $email
  92.      * @return $this
  93.      */
  94.     public function setEmail(string $email): self
  95.     {
  96.         $this->email $email;
  97.         return $this;
  98.     }
  99.     /**
  100.      * @return string|null
  101.      */
  102.     public function getWebsite(): ?string
  103.     {
  104.         return $this->website;
  105.     }
  106.     /**
  107.      * @param string $website
  108.      * @return $this
  109.      */
  110.     public function setWebsite(string $website): self
  111.     {
  112.         $this->website $website;
  113.         return $this;
  114.     }
  115.     /**
  116.      * @return string|null
  117.      */
  118.     public function getMessage(): ?string
  119.     {
  120.         return $this->message;
  121.     }
  122.     /**
  123.      * @param string $message
  124.      * @return $this
  125.      */
  126.     public function setMessage(string $message): self
  127.     {
  128.         $this->message $message;
  129.         return $this;
  130.     }
  131. }