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, nullable=true)
  17.      */
  18.     private $nomsClient;
  19.     /**
  20.      * @ORM\Column(type="string", length=255, nullable=true)
  21.      */
  22.     private $telephone;
  23.     /**
  24.      * @ORM\Column(type="string", length=255)
  25.      */
  26.     private $comptePersone;
  27.     /**
  28.      * @ORM\Column(type="string", length=255, nullable=true)
  29.      */
  30.     private $libelle;
  31.     /**
  32.      * @ORM\Column(type="integer")
  33.      */
  34.     private $Montant;
  35.     /**
  36.      * @ORM\Column(type="date")
  37.      */
  38.     private $dateOperation;
  39.     /**
  40.      * Agent qui effectue ou saisit la transaction
  41.      * @ORM\ManyToOne(targetEntity=Agent::class, inversedBy="autrePaiements")
  42.      * @ORM\JoinColumn(nullable=true)
  43.      */
  44.     private $agent;
  45.     /**
  46.      * Client (issu de la table Agent) concernĂ© par le paiement
  47.      * @ORM\ManyToOne(targetEntity=Agent::class)
  48.      * @ORM\JoinColumn(nullable=true)
  49.      */
  50.     private $client;
  51.     public function __construct()
  52.     {
  53.         // $this->dateOperation = new \DateTime();
  54.     }
  55.     public function getId(): ?int
  56.     {
  57.         return $this->id;
  58.     }
  59.     public function getTelephone(): ?string
  60.     {
  61.         return $this->telephone;
  62.     }
  63.     public function setTelephone(?string $telephone): self
  64.     {
  65.         $this->telephone = $telephone;
  66.         return $this;
  67.     }
  68.     public function getComptePersone(): ?string
  69.     {
  70.         return $this->comptePersone;
  71.     }
  72.     public function setComptePersone(string $comptePersone): self
  73.     {
  74.         $this->comptePersone = $comptePersone;
  75.         return $this;
  76.     }
  77.     public function getLibelle(): ?string
  78.     {
  79.         return $this->libelle;
  80.     }
  81.     public function setLibelle(?string $libelle): self
  82.     {
  83.         $this->libelle = $libelle;
  84.         return $this;
  85.     }
  86.     public function getMontant(): ?int
  87.     {
  88.         return $this->Montant;
  89.     }
  90.     public function setMontant(int $Montant): self
  91.     {
  92.         $this->Montant = $Montant;
  93.         return $this;
  94.     }
  95.     public function getDateOperation(): ?\DateTimeInterface
  96.     {
  97.         return $this->dateOperation;
  98.     }
  99.     public function setDateOperation(\DateTimeInterface $dateOperation): self
  100.     {
  101.         $this->dateOperation = $dateOperation;
  102.         return $this;
  103.     }
  104.     public function getAgent(): ?Agent
  105.     {
  106.         return $this->agent;
  107.     }
  108.     public function setAgent(?Agent $agent): self
  109.     {
  110.         $this->agent = $agent;
  111.         return $this;
  112.     }
  113.     public function getNomsClient(): ?string
  114.     {
  115.         return $this->nomsClient;
  116.     }
  117.     public function setNomsClient(?string $nomsClient): self
  118.     {
  119.         $this->nomsClient = $nomsClient;
  120.         return $this;
  121.     }
  122.     public function getClient(): ?Agent
  123.     {
  124.         return $this->client;
  125.     }
  126.     public function setClient(?Agent $client): self
  127.     {
  128.         $this->client = $client;
  129.         return $this;
  130.     }
  131. }