<?php
namespace App\Entity;
use App\Repository\InscriptionRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=InscriptionRepository::class)
*/
class Inscription
{
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=Projet::class, inversedBy="inscriptions")
*/
private $projet;
/**
* @ORM\ManyToOne(targetEntity=Apprenant::class, inversedBy="inscriptions")
*/
private $apprenant;
/**
* @ORM\Column(type="integer")
*/
private $categorie;
public function getId(): ?int
{
return $this->id;
}
public function getProjet(): ?Projet
{
return $this->projet;
}
public function setProjet(?Projet $projet): self
{
$this->projet = $projet;
return $this;
}
public function getApprenant(): ?Apprenant
{
return $this->apprenant;
}
public function setApprenant(?Apprenant $apprenant): self
{
$this->apprenant = $apprenant;
return $this;
}
public function getCategorie(): ?int
{
return $this->categorie;
}
public function setCategorie(int $categorie): self
{
$this->categorie = $categorie;
return $this;
}
}