src/Entity/LeveeDeFond.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\LeveeDeFondRepository")
  6.  */
  7. class LeveeDeFond
  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 $numero;
  19.     /**
  20.      * @ORM\Column(type="string", length=255, nullable=true)
  21.      */
  22.     private $aporteur_affaire;
  23.     /**
  24.      * @ORM\Column(type="string", length=255, nullable=true)
  25.      */
  26.     private $activite;
  27.     /**
  28.      * @ORM\Column(type="string", length=255, nullable=true)
  29.      */
  30.     private $societe;
  31.     /**
  32.      * @ORM\Column(type="integer")
  33.      */
  34.     private $montant_leve;
  35.     /**
  36.      * @ORM\ManyToOne(targetEntity="App\Entity\Devise", inversedBy="leveeDeFonds")
  37.      */
  38.     private $montant_unite;
  39.     /**
  40.      * @ORM\Column(type="string", length=255, nullable=true)
  41.      */
  42.     private $secteur;
  43.     /**
  44.      * @ORM\Column(type="datetime", nullable=true)
  45.      */
  46.     private $date_levee;
  47.     /**
  48.      * @ORM\Column(type="string", length=255, nullable=true)
  49.      */
  50.     private $investisseur;
  51.     /**
  52.      * @ORM\ManyToOne(targetEntity="App\Entity\User", inversedBy="leveeDeFonds")
  53.      */
  54.     private $suvi_par;
  55.     /**
  56.      * @ORM\Column(type="datetime")
  57.      */
  58.     private $created_at;
  59.     /**
  60.      * @ORM\Column(type="string", length=255, nullable=true)
  61.      */
  62.     private $montant_financement;
  63.     /**
  64.      * @ORM\ManyToOne(targetEntity="App\Entity\Devise", inversedBy="leveeDeviseFinancement")
  65.      */
  66.     private $devise_finacement;
  67.     /**
  68.      * @ORM\ManyToOne(targetEntity="App\Entity\Niveau", inversedBy="leveeDeFonds")
  69.      */
  70.     private $niveau;
  71.     /**
  72.      * @ORM\ManyToOne(targetEntity="App\Entity\Status", inversedBy="leveeDeFonds")
  73.      */
  74.     private $status;
  75.     /**
  76.      * @ORM\ManyToOne(targetEntity="App\Entity\Client", inversedBy="leveeDeFonds")
  77.      */
  78.     private $client;
  79.     public function __construct(){
  80.         $this->created_at = new \DateTime('now');
  81.         if (!isset($this->numero)){
  82.             $this->numero 'LDF'.random_int(1,900).date('s');
  83.         }else{
  84.             $this->numero 'LDF'.random_int(1,900).date('s');
  85.         }
  86.     }
  87.     public function getId(): ?int
  88.     {
  89.         return $this->id;
  90.     }
  91.     public function getNumero(): ?string
  92.     {
  93.         return $this->numero;
  94.     }
  95.     public function setNumero(?string $numero): self
  96.     {
  97.         $this->numero $numero;
  98.         return $this;
  99.     }
  100.     public function getAporteurAffaire(): ?string
  101.     {
  102.         return $this->aporteur_affaire;
  103.     }
  104.     public function setAporteurAffaire(?string $aporteur_affaire): self
  105.     {
  106.         $this->aporteur_affaire $aporteur_affaire;
  107.         return $this;
  108.     }
  109.     public function getActivite(): ?string
  110.     {
  111.         return $this->activite;
  112.     }
  113.     public function setActivite(?string $activite): self
  114.     {
  115.         $this->activite $activite;
  116.         return $this;
  117.     }
  118.     public function getSociete(): ?string
  119.     {
  120.         return $this->societe;
  121.     }
  122.     public function setSociete(?string $societe): self
  123.     {
  124.         $this->societe $societe;
  125.         return $this;
  126.     }
  127.     public function getMontantLeve(): ?int
  128.     {
  129.         return $this->montant_leve;
  130.     }
  131.     public function setMontantLeve(int $montant_leve): self
  132.     {
  133.         $this->montant_leve $montant_leve;
  134.         return $this;
  135.     }
  136.     public function getMontantUnite(): ?Devise
  137.     {
  138.         return $this->montant_unite;
  139.     }
  140.     public function setMontantUnite(?Devise $montant_unite): self
  141.     {
  142.         $this->montant_unite $montant_unite;
  143.         return $this;
  144.     }
  145.    
  146.     public function getSecteur(): ?string
  147.     {
  148.         return $this->secteur;
  149.     }
  150.     public function setSecteur(?string $secteur): self
  151.     {
  152.         $this->secteur $secteur;
  153.         return $this;
  154.     }
  155.     public function getDateLevee(): ?\DateTimeInterface
  156.     {
  157.         return $this->date_levee;
  158.     }
  159.     public function setDateLevee(?\DateTimeInterface $date_levee): self
  160.     {
  161.         $this->date_levee $date_levee;
  162.         return $this;
  163.     }
  164.     public function getInvestisseur(): ?string
  165.     {
  166.         return $this->investisseur;
  167.     }
  168.     public function setInvestisseur(?string $investisseur): self
  169.     {
  170.         $this->investisseur $investisseur;
  171.         return $this;
  172.     }
  173.     public function getSuviPar(): ?User
  174.     {
  175.         return $this->suvi_par;
  176.     }
  177.     public function setSuviPar(?User $suvi_par): self
  178.     {
  179.         $this->suvi_par $suvi_par;
  180.         return $this;
  181.     }
  182.     
  183.     public function getCreatedAt(): ?\DateTimeInterface
  184.     {
  185.         return $this->created_at;
  186.     }
  187.     public function setCreatedAt(\DateTimeInterface $created_at): self
  188.     {
  189.         $this->created_at $created_at;
  190.         return $this;
  191.     }
  192.     public function getMontantFinancement(): ?string
  193.     {
  194.         return $this->montant_financement;
  195.     }
  196.     public function setMontantFinancement(?string $montant_financement): self
  197.     {
  198.         $this->montant_financement $montant_financement;
  199.         return $this;
  200.     }
  201.     public function getDeviseFinacement(): ?Devise
  202.     {
  203.         return $this->devise_finacement;
  204.     }
  205.     public function setDeviseFinacement(?Devise $devise_finacement): self
  206.     {
  207.         $this->devise_finacement $devise_finacement;
  208.         return $this;
  209.     }
  210.     public function getNiveau(): ?Niveau
  211.     {
  212.         return $this->niveau;
  213.     }
  214.     public function setNiveau(?Niveau $niveau): self
  215.     {
  216.         $this->niveau $niveau;
  217.         return $this;
  218.     }
  219.     public function getStatus(): ?Status
  220.     {
  221.         return $this->status;
  222.     }
  223.     public function setStatus(?Status $status): self
  224.     {
  225.         $this->status $status;
  226.         return $this;
  227.     }
  228.     public function getClient(): ?Client
  229.     {
  230.         return $this->client;
  231.     }
  232.     public function setClient(?Client $client): self
  233.     {
  234.         $this->client $client;
  235.         return $this;
  236.     }
  237. }