src/Entity/UserJob.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\UserJobRepository")
  6.  */
  7. class UserJob
  8. {
  9.     /**
  10.      * @ORM\Id()
  11.      * @ORM\GeneratedValue()
  12.      * @ORM\Column(type="integer")
  13.      */
  14.     private $id;
  15.     /**
  16.      * @ORM\Column(type="string", length=255)
  17.      */
  18.     private $title;
  19.     /**
  20.      * @ORM\Column(type="string", length=255)
  21.      */
  22.     private $company;
  23.     /**
  24.      * @ORM\Column(type="string", length=255)
  25.      */
  26.     private $location;
  27.     /**
  28.      * @ORM\Column(type="datetime")
  29.      */
  30.     private $date;
  31.     /**
  32.      * @ORM\Column(type="string", length=255)
  33.      */
  34.     private $vendor;
  35.     /**
  36.      * @ORM\ManyToOne(targetEntity="App\Entity\User", inversedBy="userJobs")
  37.      */
  38.     private $user;
  39.     public function getId(): ?int
  40.     {
  41.         return $this->id;
  42.     }
  43.     public function getTitle(): ?string
  44.     {
  45.         return $this->title;
  46.     }
  47.     public function setTitle(string $title): self
  48.     {
  49.         $this->title $title;
  50.         return $this;
  51.     }
  52.     public function getCompany(): ?string
  53.     {
  54.         return $this->company;
  55.     }
  56.     public function setCompany(string $company): self
  57.     {
  58.         $this->company $company;
  59.         return $this;
  60.     }
  61.     public function getLocation(): ?string
  62.     {
  63.         return $this->location;
  64.     }
  65.     public function setLocation(string $location): self
  66.     {
  67.         $this->location $location;
  68.         return $this;
  69.     }
  70.     public function getDate(): ?\DateTimeInterface
  71.     {
  72.         return $this->date;
  73.     }
  74.     public function setDate(\DateTimeInterface $date): self
  75.     {
  76.         $this->date $date;
  77.         return $this;
  78.     }
  79.     public function getVendor(): ?string
  80.     {
  81.         return $this->vendor;
  82.     }
  83.     public function setVendor(string $vendor): self
  84.     {
  85.         $this->vendor $vendor;
  86.         return $this;
  87.     }
  88.     public function getUser(): ?User
  89.     {
  90.         return $this->user;
  91.     }
  92.     public function setUser(?User $user): self
  93.     {
  94.         $this->user $user;
  95.         return $this;
  96.     }
  97. }