<?phpnamespace App\Entity;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass="App\Repository\AutrePaiementRepository") */class AutrePaiement{ /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="string", length=255) */ private $nomsClient; /** * @ORM\Column(type="string", length=255) */ private $comptePersone; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $libelle; /** * @ORM\Column(type="integer") */ private $Montant; /** * @ORM\Column(type="date") */ private $dateOperation; /** * @ORM\ManyToOne(targetEntity=Agent::class, inversedBy="autrePaiements") * @ORM\JoinColumn(nullable=false) */ private $agent; public function __construct() { // $this->dateOperation = new \DateTime(); } public function getId(): ?int { return $this->id; } public function getComptePersone(): ?string { return $this->comptePersone; } public function setComptePersone(string $comptePersone): self { $this->comptePersone = $comptePersone; return $this; } public function getLibelle(): ?string { return $this->libelle; } public function setLibelle(string $libelle): self { $this->libelle = $libelle; return $this; } public function getMontant(): ?int { return $this->Montant; } public function setMontant(int $Montant): self { $this->Montant = $Montant; return $this; } public function getDateOperation(): ?\DateTimeInterface { return $this->dateOperation; } public function setDateOperation(\DateTimeInterface $dateOperation): self { $this->dateOperation = $dateOperation; return $this; } public function getAgent(): ?Agent { return $this->agent; } public function setAgent(?Agent $agent): self { $this->agent = $agent; return $this; } public function getNomsClient(): ? String { return $this->nomsClient; } public function setNomsClient(?String $nomsClient):self { $this->nomsClient = $nomsClient; return $this; }}