src/Entity/AutrePaiement.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Entity(repositoryClass="App\Repository\AutrePaiementRepository")
  6.  */
  7. class AutrePaiement
  8. {
  9.     /**
  10.      * @ORM\Id()
  11.      * @ORM\GeneratedValue()
  12.      * @ORM\Column(type="integer")
  13.      */
  14.     private $id;
  15.     /**
  16.      * @ORM\Column(type="string", length=255)
  17.      */
  18.     private $nomsClient;
  19.     /**
  20.      * @ORM\Column(type="string", length=255)
  21.      */
  22.     private $comptePersone;
  23.     /**
  24.      * @ORM\Column(type="string", length=255, nullable=true)
  25.      */
  26.     private $libelle;
  27.     /**
  28.      * @ORM\Column(type="integer")
  29.      */
  30.     private $Montant;
  31.     /**
  32.      * @ORM\Column(type="date")
  33.      */
  34.     private $dateOperation;
  35.     /**
  36.      * @ORM\ManyToOne(targetEntity=Agent::class, inversedBy="autrePaiements")
  37.      * @ORM\JoinColumn(nullable=false)
  38.      */
  39.     private $agent;
  40.     public function __construct()
  41.     {
  42.        // $this->dateOperation = new \DateTime();
  43.     }
  44.     public function getId(): ?int
  45.     {
  46.         return $this->id;
  47.     }
  48.     public function getComptePersone(): ?string
  49.     {
  50.         return $this->comptePersone;
  51.     }
  52.     public function setComptePersone(string $comptePersone): self
  53.     {
  54.         $this->comptePersone $comptePersone;
  55.         return $this;
  56.     }
  57.     public function getLibelle(): ?string
  58.     {
  59.         return $this->libelle;
  60.     }
  61.     public function setLibelle(string $libelle): self
  62.     {
  63.         $this->libelle $libelle;
  64.         return $this;
  65.     }
  66.     public function getMontant(): ?int
  67.     {
  68.         return $this->Montant;
  69.     }
  70.     public function setMontant(int $Montant): self
  71.     {
  72.         $this->Montant $Montant;
  73.         return $this;
  74.     }
  75.     public function getDateOperation(): ?\DateTimeInterface
  76.     {
  77.         return $this->dateOperation;
  78.     }
  79.     public function setDateOperation(\DateTimeInterface $dateOperation): self
  80.     {
  81.         $this->dateOperation $dateOperation;
  82.         return $this;
  83.     }
  84.     public function getAgent(): ?Agent
  85.     {
  86.         return $this->agent;
  87.     }
  88.     public function setAgent(?Agent $agent): self
  89.     {
  90.         $this->agent $agent;
  91.         return $this;
  92.     }
  93.     public function getNomsClient(): ? String
  94.     {
  95.         return $this->nomsClient;
  96.     }
  97.     public function setNomsClient(?String $nomsClient):self
  98.     {
  99.         $this->nomsClient $nomsClient;
  100.         return $this;
  101.     }
  102. }