<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\Repository\FacturesRepository")
* @ORM\Table(name="factures", options={"collate"="latin1_general_ci","charset"="latin1"})
* @ORM\HasLifecycleCallbacks()
*/
class Factures
{
/**
* @var integer
*
* @ORM\Column(name="id", type="integer", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="source", type="string", length=10, nullable=false)
*/
private $source;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Fournisseur", cascade={"persist"})
* @ORM\JoinColumn(nullable=true)
*/
private $idfournisseur;
/**
* @var integer
*
* @ORM\Column(name="numero", type="integer", nullable=false)
*/
private $numero;
/**
* @var integer
*
* @ORM\Column(name="correction", type="integer", nullable=false)
*/
private $correction;
/**
* @var \DateTime
*
* @ORM\Column(name="datefr", type="date", nullable=false)
*/
private $datefr;
/**
* @var float
*
* @ORM\Column(name="montantht", type="decimal", nullable=false, precision=8, scale=2)
*/
private $montantht;
/**
* @var string
*
* @ORM\Column(name="fichier", type="text", nullable=false)
*/
private $fichier;
/**
* @var string
*
* @ORM\Column(name="description", type="text", nullable=false)
*/
private $description;
/**
* Get id
*
* @return integer
*/
public function getId()
{
return $this->id;
}
/**
* Set source
*
* @param string $source
* @return Factures
*/
public function setSource($source)
{
$this->source = $source;
return $this;
}
/**
* Get source
*
* @return string
*/
public function getSource()
{
return $this->source;
}
/**
* Set numero
*
* @param integer $numero
* @return Factures
*/
public function setNumero($numero)
{
$this->numero = $numero;
return $this;
}
/**
* Get numero
*
* @return integer
*/
public function getNumero()
{
return $this->numero;
}
/**
* Set correction
*
* @param integer $correction
* @return Factures
*/
public function setCorrection($correction)
{
$this->correction = $correction;
return $this;
}
/**
* Get correction
*
* @return integer
*/
public function getCorrection()
{
return $this->correction;
}
/**
* Set datefr
*
* @param \DateTime $datefr
* @return Factures
*/
public function setDatefr($datefr)
{
$this->datefr = $datefr;
return $this;
}
/**
* Get datefr
*
* @return \DateTime
*/
public function getDatefr()
{
return $this->datefr;
}
/**
* Set montantht
*
* @param float $montantht
* @return Factures
*/
public function setMontantht($montantht)
{
$this->montantht = $montantht;
return $this;
}
/**
* Get montantht
*
* @return float
*/
public function getMontantht()
{
return $this->montantht;
}
/**
* Set fichier
*
* @param string $fichier
* @return Factures
*/
public function setFichier($fichier)
{
$this->fichier = $fichier;
return $this;
}
/**
* Get fichier
*
* @return string
*/
public function getFichier()
{
return $this->fichier;
}
/**
* Set description
*
* @param string $description
* @return Factures
*/
public function setDescription($description)
{
$this->description = $description;
return $this;
}
/**
* Get description
*
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Set idfournisseur
*
* @param Fournisseur $idfournisseur
* @return Factures
*/
public function setIdfournisseur(Fournisseur $idfournisseur)
{
$this->idfournisseur = $idfournisseur;
return $this;
}
/**
* Get idfournisseur
*
* @return Fournisseur
*/
public function getIdfournisseur()
{
return $this->idfournisseur;
}
}