src/Entity/Application.php line 17

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Entity\Offer\Offer;
  4. use App\Entity\Traits\IdTrait;
  5. use App\Entity\Traits\TimeStampAbleTrait;
  6. use App\Repository\ApplicationRepository;
  7. use Doctrine\Common\Collections\ArrayCollection;
  8. use Doctrine\Common\Collections\Collection;
  9. use Doctrine\ORM\Mapping as ORM;
  10. /**
  11.  * @ORM\Entity(repositoryClass=ApplicationRepository::class)
  12.  * @ORM\HasLifecycleCallbacks
  13.  */
  14. class Application
  15. {
  16.     use IdTrait;
  17.     use TimeStampAbleTrait;
  18.     /**
  19.      * @ORM\Column(type="string", length=255, nullable=true)
  20.      */
  21.     private $fullName;
  22.     /**
  23.      * @ORM\Column(type="string", length=255, nullable=true)
  24.      */
  25.     private $email;
  26.     /**
  27.      * @ORM\Column(type="string", length=255, nullable=true)
  28.      */
  29.     private $phone;
  30.     /**
  31.      * @ORM\ManyToOne(targetEntity=File::class, inversedBy="application")
  32.      * @ORM\JoinColumn(nullable=true)
  33.      */
  34.     private $file;
  35.     /**
  36.      * @ORM\ManyToOne(targetEntity=Offer::class, inversedBy="application")
  37.      * @ORM\JoinColumn(nullable=true)
  38.      */
  39.     private $offer;
  40.     /**
  41.      * @ORM\ManyToOne(targetEntity=Offer::class)
  42.      * @ORM\JoinColumn(nullable=true)
  43.      */
  44.     private $mainOffer;
  45.     public function getFullName(): ?string
  46.     {
  47.         return $this->fullName;
  48.     }
  49.     public function setFullName(?string $fullName): self
  50.     {
  51.         $this->fullName = $fullName;
  52.         return $this;
  53.     }
  54.     public function getEmail(): ?string
  55.     {
  56.         return $this->email;
  57.     }
  58.     public function setEmail(?string $email): self
  59.     {
  60.         $this->email = $email;
  61.         return $this;
  62.     }
  63.     public function getPhone(): ?string
  64.     {
  65.         return $this->phone;
  66.     }
  67.     public function setPhone(?string $phone): self
  68.     {
  69.         $this->phone = $phone;
  70.         return $this;
  71.     }
  72.     public function getFile(): ?File
  73.     {
  74.         return $this->file;
  75.     }
  76.     public function setFile(?File $file): self
  77.     {
  78.         $this->file = $file;
  79.         return $this;
  80.     }
  81.     public function getOffer(): ?Offer
  82.     {
  83.         return $this->offer;
  84.     }
  85.     public function setOffer(?Offer $offer): self
  86.     {
  87.         $this->offer = $offer;
  88.         return $this;
  89.     }
  90.     public function getMainOffer()
  91.     {
  92.         return $this->mainOffer;
  93.     }
  94.     public function setMainOffer($mainOffer): self
  95.     {
  96.         $this->mainOffer = $mainOffer;
  97.         return $this;
  98.     }
  99. }