src/Entity/Gos/UserAdditionalInfo.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Gos;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Entity(repositoryClass="App\Repository\Gos\UserAdditionalInfoRepository")
  6.  * @ORM\HasLifecycleCallbacks()
  7.  */
  8. class UserAdditionalInfo
  9. {
  10.     /** @ORM\PreUpdate() */
  11.     public function preUpdate()
  12.     {
  13.         $this->updatedAt = new \DateTime();
  14.     }
  15.     /**
  16.      * @ORM\Id()
  17.      * @ORM\GeneratedValue()
  18.      * @ORM\Column(type="integer")
  19.      */
  20.     private $id;
  21.     /**
  22.      * @ORM\ManyToOne(targetEntity="User", inversedBy="additionalInformation", cascade={"persist"})
  23.      * @ORM\JoinColumn(nullable=false)
  24.      */
  25.     private $user;
  26.     /**
  27.      * @var \DateTime
  28.      *
  29.      * @ORM\Column(name="updated_at", type="datetime", nullable=true)
  30.      */
  31.     protected $updatedAt;
  32.     /**
  33.      * @var string
  34.      *
  35.      * @ORM\Column(name="info_name", type="string", length=255, unique=false)
  36.      */
  37.     private $infoName;
  38.     /**
  39.      * @var string
  40.      *
  41.      * @ORM\Column(name="info_value", type="text", unique=false)
  42.      */
  43.     private $infoValue;
  44.     /**
  45.      * @ORM\ManyToOne(targetEntity=LeadFormCompleted::class, cascade={"persist"})
  46.      */
  47.     private $leadFormCompleted;
  48.     /**
  49.      * @return mixed
  50.      */
  51.     public function getId()
  52.     {
  53.         return $this->id;
  54.     }
  55.     /**
  56.      * @param mixed $id
  57.      */
  58.     public function setId($id): void
  59.     {
  60.         $this->id $id;
  61.     }
  62.     /**
  63.      * @return \DateTime
  64.      */
  65.     public function getUpdatedAt(): \DateTime
  66.     {
  67.         return $this->updatedAt;
  68.     }
  69.     /**
  70.      * @param \DateTime $updatedAt
  71.      */
  72.     public function setUpdatedAt(\DateTime $updatedAt): void
  73.     {
  74.         $this->updatedAt $updatedAt;
  75.     }
  76.     /**
  77.      * @return mixed
  78.      */
  79.     public function getUser()
  80.     {
  81.         return $this->user;
  82.     }
  83.     /**
  84.      * @param mixed $user
  85.      */
  86.     public function setUser($user): void
  87.     {
  88.         $this->user $user;
  89.     }
  90.     /**
  91.      * @return string
  92.      */
  93.     public function getInfoName(): string
  94.     {
  95.         return $this->infoName;
  96.     }
  97.     /**
  98.      * @param string $infoName
  99.      */
  100.     public function setInfoName(string $infoName): void
  101.     {
  102.         $this->infoName $infoName;
  103.     }
  104.     /**
  105.      * @return string
  106.      */
  107.     public function getInfoValue(): string
  108.     {
  109.         return $this->infoValue;
  110.     }
  111.     /**
  112.      * @param string $infoValue
  113.      */
  114.     public function setInfoValue(string $infoValue): void
  115.     {
  116.         $this->infoValue $infoValue;
  117.     }
  118.     public function getLeadFormCompleted(): ?LeadFormCompleted
  119.     {
  120.         return $this->leadFormCompleted;
  121.     }
  122.     public function setLeadFormCompleted(?LeadFormCompleted $leadFormCompleted): self
  123.     {
  124.         $this->leadFormCompleted $leadFormCompleted;
  125.         return $this;
  126.     }
  127. }