<?php
namespace App\Entity;
use App\Repository\ArgentSupplementaireRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=ArgentSupplementaireRepository::class)
*/
class ArgentSupplementaire
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255)
*/
private $libelle;
/**
* @ORM\Column(type="string", length=20)
*/
private $montant;
/**
* @ORM\ManyToOne(targetEntity=Reception::class, inversedBy="argentSupplements")
* @ORM\JoinColumn(nullable=false, onDelete="CASCADE")
*/
private $reception;
public function getId(): ?int
{
return $this->id;
}
public function getLibelle(): ?string
{
return $this->libelle;
}
public function setLibelle(string $libelle): self
{
$this->libelle = $libelle;
return $this;
}
public function getMontant(): ?string
{
return $this->montant;
}
public function setMontant(string $montant): self
{
$this->montant = $montant;
return $this;
}
public function getReception(): ?Reception
{
return $this->reception;
}
public function setReception(?Reception $reception): self
{
$this->reception = $reception;
return $this;
}
}