src/Entity/Experience.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ExperienceRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassExperienceRepository::class)]
  6. class Experience
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column(type'integer')]
  11.     private $id;
  12.     #[ORM\Column(type'string'length255)]
  13.     private $jobTitle;
  14.     #[ORM\Column(type'string'length255)]
  15.     private $sector;
  16.     #[ORM\Column(type'string'length255)]
  17.     private $address;
  18.     #[ORM\Column(type'text')]
  19.     private $description;
  20.     #[ORM\ManyToOne(targetEntityCoachInfo::class, inversedBy'experience')]
  21.     private $coach;
  22.     #[ORM\Column(type'string'length255)]
  23.     private $begin;
  24.     #[ORM\Column(type'string'length255)]
  25.     private $end;
  26.     #[ORM\Column(type'string'length255)]
  27.     private $company;
  28.     public function getId(): ?int
  29.     {
  30.         return $this->id;
  31.     }
  32.     public function getJobTitle(): ?string
  33.     {
  34.         return $this->jobTitle;
  35.     }
  36.     public function setJobTitle(string $jobTitle): self
  37.     {
  38.         $this->jobTitle $jobTitle;
  39.         return $this;
  40.     }
  41.     public function getSector(): ?string
  42.     {
  43.         return $this->sector;
  44.     }
  45.     public function setSector(string $sector): self
  46.     {
  47.         $this->sector $sector;
  48.         return $this;
  49.     }
  50.     public function getAddress(): ?string
  51.     {
  52.         return $this->address;
  53.     }
  54.     public function setAddress(string $address): self
  55.     {
  56.         $this->address $address;
  57.         return $this;
  58.     }
  59.     public function getDescription()
  60.     {
  61.         return $this->description;
  62.     }
  63.     public function setDescription($description)
  64.     {
  65.         $this->description $description;
  66.         return $this;
  67.     }
  68.     public function getCoach(): ?CoachInfo
  69.     {
  70.         return $this->coach;
  71.     }
  72.     public function setCoach(?CoachInfo $coach): self
  73.     {
  74.         $this->coach $coach;
  75.         return $this;
  76.     }
  77.     public function getBegin(): ?string
  78.     {
  79.         return $this->begin;
  80.     }
  81.     public function setBegin(string $begin): self
  82.     {
  83.         $this->begin $begin;
  84.         return $this;
  85.     }
  86.     public function getEnd(): ?string
  87.     {
  88.         return $this->end;
  89.     }
  90.     public function setEnd(string $end): self
  91.     {
  92.         $this->end $end;
  93.         return $this;
  94.     }
  95.     public function getCompany(): ?string
  96.     {
  97.         return $this->company;
  98.     }
  99.     public function setCompany(string $company): self
  100.     {
  101.         $this->company $company;
  102.         return $this;
  103.     }
  104. }