<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\Repository\ClientencaisseRepository")
* @ORM\Table(name="clientencaisse", options={"collate"="latin1_general_ci","charset"="latin1"})
* @ORM\HasLifecycleCallbacks()
*/
class Clientencaisse
{
/**
* @var integer
*
* @ORM\Column(name="id", type="integer", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Clientvente", cascade={"persist"})
* @ORM\JoinColumn(nullable=true, onDelete="CASCADE")
*/
private $idvente;
/**
* @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 \DateTime
*
* @ORM\Column(name="facturedatefr", type="date", nullable=false)
*/
private $facturedatefr;
/**
* @var integer
*
* @ORM\Column(name="facturenumero", type="integer", nullable=false)
*/
private $facturenumero;
/**
* Get id
*
* @return integer
*/
public function getId()
{
return $this->id;
}
/**
* @param Clientvente $idvente
* @return $this
*/
public function setIdvente(Clientvente $idvente)
{
$this->idvente = $idvente;
return $this;
}
/**
* Get idvente
*
* @return Clientvente
*/
public function getIdvente()
{
return $this->idvente;
}
/**
* Set datefr
*
* @param \DateTime $datefr
* @return Clientencaisse
*/
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 Clientencaisse
*/
public function setMontantht($montantht)
{
$this->montantht = $montantht;
return $this;
}
/**
* Get montantht
*
* @return float
*/
public function getMontantht()
{
return $this->montantht;
}
/**
* Set facturedatefr
*
* @param \DateTime $facturedatefr
* @return Clientencaisse
*/
public function setFacturedatefr($facturedatefr)
{
$this->facturedatefr = $facturedatefr;
return $this;
}
/**
* Get facturedatefr
*
* @return \DateTime
*/
public function getFacturedatefr()
{
return $this->facturedatefr;
}
/**
* Set facturenumero
*
* @param integer $facturenumero
* @return Clientencaisse
*/
public function setFacturenumero($facturenumero)
{
$this->facturenumero = $facturenumero;
return $this;
}
/**
* Get facturenumero
*
* @return integer
*/
public function getFacturenumero()
{
return $this->facturenumero;
}
}