<?php
namespace App\Entity;
use App\Repository\ContractNetTheoriqueRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: ContractNetTheoriqueRepository::class)]
class ContractNetTheorique
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\ManyToOne]
private ?Periode $periode = null;
#[ORM\Column(nullable: true)]
private ?float $montant = null;
#[ORM\ManyToOne(inversedBy: 'contractNetTheoriques')]
private ?Tbulletin $bulletin = null;
public function getId(): ?int
{
return $this->id;
}
public function getPeriode(): ?Periode
{
return $this->periode;
}
public function setPeriode(?Periode $periode): static
{
$this->periode = $periode;
return $this;
}
public function getMontant(): ?float
{
return $this->montant;
}
public function setMontant(?float $montant): static
{
$this->montant = $montant;
return $this;
}
public function getBulletin(): ?Tbulletin
{
return $this->bulletin;
}
public function setBulletin(?Tbulletin $bulletin): static
{
$this->bulletin = $bulletin;
return $this;
}
}