<?php
namespace App\Entity;
use App\Repository\JustifFormRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=JustifFormRepository::class)
*/
class JustifForm
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=Formation::class, inversedBy="justifForms")
* @ORM\JoinColumn(nullable=false)
*/
private $formation;
/**
* @ORM\Column(type="boolean")
*/
private $state;
/**
* @ORM\ManyToOne(targetEntity=Justificatif::class, inversedBy="justifForms")
* @ORM\JoinColumn(nullable=false)
*/
private $justificatif;
public function getId(): ?int
{
return $this->id;
}
public function getFormation(): ?Formation
{
return $this->formation;
}
public function setFormation(?Formation $formation): self
{
$this->formation = $formation;
return $this;
}
public function isState(): ?bool
{
return $this->state;
}
public function setState(bool $state): self
{
$this->state = $state;
return $this;
}
public function getJustificatif(): ?Justificatif
{
return $this->justificatif;
}
public function setJustificatif(?Justificatif $justificatif): self
{
$this->justificatif = $justificatif;
return $this;
}
}