<?php
namespace App\Entity;
use App\Utils\SharedMethods;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\Repository\RequeteDeFinancementRepository")
*/
class RequeteDeFinancement
{
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255)
*/
private $numero;
/**
* @ORM\Column(type="string", length=255)
*/
private $societe;
/**
* @ORM\Column(type="string", length=255)
*/
private $pays;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $activite;
/**
* @ORM\Column(type="string", length=255)
*/
private $courriel;
/**
* @ORM\Column(type="datetime")
*/
private $dateRemiseDossier;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $contact;
/**
* @ORM\Column(type="string", length=255)
*/
private $secteur;
/**
* @ORM\Column(type="string", length=255)
*/
private $telephone;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $adresse;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $dateEstimeDemarrageProjet;
/**
* @ORM\Column(type="string", length=255)
*/
private $montantDemande;
/**
* @ORM\Column(type="string", length=255)
*/
private $partVariable;
/**
* @ORM\Column(type="string", length=255)
*/
private $natureInvestissement;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $note;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\User", inversedBy="requeteDeFinancements")
*/
private $user;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Niveau", inversedBy="requeteDeFinancements")
*/
private $niveau;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Status", inversedBy="requeteDeFinancements")
*/
private $status;
/**
* @ORM\Column(type="datetime")
*/
private $createdAt;
public function __construct(){
$this->createdAt = new \DateTime('now');
// $this->statu = "En cours";
$this->numero = SharedMethods::generateNumber($this->numero,"RDF");
}
public function getUser(): ?User
{
return $this->user;
}
public function setUser(?User $user): self
{
$this->user = $user;
return $this;
}
public function getId(): ?int
{
return $this->id;
}
public function getNumero(): ?string
{
return $this->numero;
}
public function setNumero(string $numero): self
{
$this->numero = $numero;
return $this;
}
public function getSociete(): ?string
{
return $this->societe;
}
public function setSociete(string $societe): self
{
$this->societe = $societe;
return $this;
}
public function getPays(): ?string
{
return $this->pays;
}
public function setPays(string $pays): self
{
$this->pays = $pays;
return $this;
}
public function getActivite(): ?string
{
return $this->activite;
}
public function setActivite(?string $activite): self
{
$this->activite = $activite;
return $this;
}
public function getCourriel(): ?string
{
return $this->courriel;
}
public function setCourriel(string $courriel): self
{
$this->courriel = $courriel;
return $this;
}
public function getDateRemiseDossier(): ?\DateTimeInterface
{
return $this->dateRemiseDossier;
}
public function setDateRemiseDossier(\DateTimeInterface $dateRemiseDossier): self
{
$this->dateRemiseDossier = $dateRemiseDossier;
return $this;
}
public function getContact(): ?string
{
return $this->contact;
}
public function setContact(?string $contact): self
{
$this->contact = $contact;
return $this;
}
public function getSecteur(): ?string
{
return $this->secteur;
}
public function setSecteur(string $secteur): self
{
$this->secteur = $secteur;
return $this;
}
public function getTelephone(): ?string
{
return $this->telephone;
}
public function setTelephone(string $telephone): self
{
$this->telephone = $telephone;
return $this;
}
public function getAdresse(): ?string
{
return $this->adresse;
}
public function setAdresse(?string $adresse): self
{
$this->adresse = $adresse;
return $this;
}
public function getDateEstimeDemarrageProjet(): ?\DateTimeInterface
{
return $this->dateEstimeDemarrageProjet;
}
public function setDateEstimeDemarrageProjet(?\DateTimeInterface $dateEstimeDemarrageProjet): self
{
$this->dateEstimeDemarrageProjet = $dateEstimeDemarrageProjet;
return $this;
}
public function getMontantDemande(): ?string
{
return $this->montantDemande;
}
public function setMontantDemande(string $montantDemande): self
{
$this->montantDemande = $montantDemande;
return $this;
}
public function getPartVariable(): ?string
{
return $this->partVariable;
}
public function setPartVariable(string $partVariable): self
{
$this->partVariable = $partVariable;
return $this;
}
public function getNatureInvestissement(): ?string
{
return $this->natureInvestissement;
}
public function setNatureInvestissement(string $natureInvestissement): self
{
$this->natureInvestissement = $natureInvestissement;
return $this;
}
public function getNote(): ?string
{
return $this->note;
}
public function setNote(?string $note): self
{
$this->note = $note;
return $this;
}
public function getNiveau(): ?Niveau
{
return $this->niveau;
}
public function setNiveau(?Niveau $niveau): self
{
$this->niveau = $niveau;
return $this;
}
public function getStatus(): ? Status
{
return $this->status;
}
public function setStatus(?Status $status): self
{
$this->status = $status;
return $this;
}
public function getCreatedAt(): ?\DateTimeInterface
{
return $this->createdAt;
}
public function setCreatedAt(\DateTimeInterface $createdAt): self
{
$this->createdAt = $createdAt;
return $this;
}
}