src/Entity/Experience.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ExperienceRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Entity(repositoryClass=ExperienceRepository::class)
  8.  */
  9. class Experience
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\Column(type="string", length=255)
  19.      */
  20.     private $employer;
  21.     /**
  22.      * @ORM\Column(type="date")
  23.      */
  24.     private $start_at;
  25.     /**
  26.      * @ORM\Column(type="date", nullable=true)
  27.      */
  28.     private $end_at;
  29.     /**
  30.      * @ORM\Column(type="text", nullable=true)
  31.      */
  32.     private $objectif;
  33.     /**
  34.      * @ORM\Column(type="text", nullable=true)
  35.      */
  36.     private $missions;
  37.     /**
  38.      * @ORM\Column(type="string", length=255, nullable=true)
  39.      */
  40.     private $environment;
  41.     /**
  42.      * @ORM\ManyToOne(targetEntity=Profile::class, inversedBy="experiences")
  43.      * @ORM\JoinColumn(nullable=false, onDelete="CASCADE")
  44.      */
  45.     private $profile;
  46.     /**
  47.      * @ORM\Column(type="string", length=255)
  48.      */
  49.     private $title;
  50.     /**
  51.      * @ORM\Column(type="boolean", nullable=true)
  52.      */
  53.     private $actualyHere;
  54.     public function getId(): ?int
  55.     {
  56.         return $this->id;
  57.     }
  58.     public function getEmployer(): ?string
  59.     {
  60.         return $this->employer;
  61.     }
  62.     public function setEmployer(string $employer): self
  63.     {
  64.         $this->employer $employer;
  65.         return $this;
  66.     }
  67.     public function getStartAt(): ?\DateTimeInterface
  68.     {
  69.         return $this->start_at;
  70.     }
  71.     public function setStartAt(\DateTimeInterface $start_at): self
  72.     {
  73.         $this->start_at $start_at;
  74.         return $this;
  75.     }
  76.     public function getEndAt(): ?\DateTimeInterface
  77.     {
  78.         return $this->end_at;
  79.     }
  80.     public function setEndAt(?\DateTimeInterface $end_at): self
  81.     {
  82.         $this->end_at $end_at;
  83.         return $this;
  84.     }
  85.     
  86.     public function getEnvironment(): ?string
  87.     {
  88.         return $this->environment;
  89.     }
  90.     public function setEnvironment(?string $environment): self
  91.     {
  92.         $this->environment $environment;
  93.         return $this;
  94.     }
  95.     public function getProfile(): ?Profile
  96.     {
  97.         return $this->profile;
  98.     }
  99.     public function setProfile(?Profile $profile): self
  100.     {
  101.         $this->profile $profile;
  102.         return $this;
  103.     }
  104.     public function getTitle(): ?string
  105.     {
  106.         return $this->title;
  107.     }
  108.     public function setTitle(string $title): self
  109.     {
  110.         $this->title $title;
  111.         return $this;
  112.     }
  113.     public function isActualyHere(): ?bool
  114.     {
  115.         return $this->actualyHere;
  116.     }
  117.     public function setActualyHere(?bool $actualyHere): self
  118.     {
  119.         $this->actualyHere $actualyHere;
  120.         return $this;
  121.     }
  122.     public function getObjectif(): ?string
  123.     {
  124.         return $this->objectif;
  125.     }
  126.     public function setObjectif(?string $objectif): self
  127.     {
  128.         $this->objectif $objectif;
  129.         return $this;
  130.     }
  131.     public function getMissions(): ?string
  132.     {
  133.         return $this->missions;
  134.     }
  135.     public function setMissions(?string $missions): self
  136.     {
  137.         $this->missions $missions;
  138.         return $this;
  139.     }
  140. }