src/Entity/Diplome.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\DiplomeRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Entity(repositoryClass=DiplomeRepository::class)
  8.  */
  9. class Diplome
  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 $title;
  21.     /**
  22.      * @ORM\Column(type="string", length=255, nullable=true)
  23.      */
  24.     private $university;
  25.     /**
  26.      * @ORM\Column(type="string", length=255, nullable=true)
  27.      */
  28.     private $level;
  29.     /**
  30.      * @ORM\Column(type="text", nullable=true)
  31.      */
  32.     private $description;
  33.     /**
  34.      * @ORM\ManyToOne(targetEntity=Profile::class, inversedBy="diplomes")
  35.      * @ORM\JoinColumn(nullable=false, onDelete="CASCADE")
  36.      */
  37.     private $profile;
  38.     /**
  39.      * @ORM\Column(type="integer", nullable=true)
  40.      */
  41.     private $obtentionYear;
  42.     public function getId(): ?int
  43.     {
  44.         return $this->id;
  45.     }
  46.     public function getTitle(): ?string
  47.     {
  48.         return $this->title;
  49.     }
  50.     public function setTitle(string $title): self
  51.     {
  52.         $this->title $title;
  53.         return $this;
  54.     }
  55.     public function getUniversity(): ?string
  56.     {
  57.         return $this->university;
  58.     }
  59.     public function setUniversity(string $university): self
  60.     {
  61.         $this->university $university;
  62.         return $this;
  63.     }
  64.     public function getLevel(): ?string
  65.     {
  66.         return $this->level;
  67.     }
  68.     public function setLevel(string $level): self
  69.     {
  70.         $this->level $level;
  71.         return $this;
  72.     }
  73.     public function getDescription(): ?string
  74.     {
  75.         return $this->description;
  76.     }
  77.     public function setDescription(string $description): self
  78.     {
  79.         $this->description $description;
  80.         return $this;
  81.     }
  82.     public function getProfile(): ?Profile
  83.     {
  84.         return $this->profile;
  85.     }
  86.     public function setProfile(?Profile $profile): self
  87.     {
  88.         $this->profile $profile;
  89.         return $this;
  90.     }
  91.     public function getObtentionYear(): ?int
  92.     {
  93.         return $this->obtentionYear;
  94.     }
  95.     public function setObtentionYear(int $obtentionYear): self
  96.     {
  97.         $this->obtentionYear $obtentionYear;
  98.         return $this;
  99.     }
  100. }