<?php
/**
* BtlfStatistiques.php
* Created by Stéphane Brun
*/
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
* @ORM\Table(name="btlf_statistiques")
*/
class BtlfStatistiques
{
/**
* @ORM\Column(type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $id;
/**
* @ORM\Column(type="date")
*/
protected $date;
/**
* @ORM\Column(type="integer", nullable=true)
*/
protected $venteDetail = 0;
/**
* @ORM\Column(type="float", nullable=true)
*/
protected $montantDetail = 0;
/**
* @ORM\Column(type="integer", nullable=true)
*/
protected $venteCollectivite = 0;
/**
* @ORM\Column(type="float", nullable=true)
*/
protected $montantCollectivite = 0;
/**
* @ORM\Column(type="integer", nullable=true)
*/
protected $stock = 0;
/**
* @ORM\Column(type="integer", nullable=true)
*/
protected $retour = 0;
/**
* @ORM\Column(type="integer", nullable=true)
*/
protected $commande = 0;
/**
* has one Titre
*
* @ORM\ManyToOne(targetEntity="App\Entity\Titre")
* @ORM\JoinColumn(name="titre_id", referencedColumnName="TISBN")
*/
protected $produit;
/**
* has one Company
*
* @ORM\ManyToOne(targetEntity="App\Entity\Company")
* @ORM\JoinColumn(name="company_id", referencedColumnName="id")
*/
protected $company;
/**
* has one Company
*
* @ORM\ManyToOne(targetEntity="App\Entity\TitreCompany")
* @ORM\JoinColumn(name="titre_company_id", referencedColumnName="id")
*/
protected $titreCompany;
/**
* @return mixed
*/
public function getId()
{
return $this->id;
}
/**
* @param mixed $id
* @return BtlfStatistiques
*/
public function setId($id)
{
$this->id = $id;
return $this;
}
/**
* @return mixed
*/
public function getDate()
{
return $this->date;
}
/**
* @param mixed $date
* @return BtlfStatistiques
*/
public function setDate($date)
{
$this->date = $date;
return $this;
}
/**
* @return mixed
*/
public function getVenteDetail()
{
return $this->venteDetail;
}
/**
* @param mixed $venteDetail
* @return BtlfStatistiques
*/
public function setVenteDetail($venteDetail)
{
$this->venteDetail = $venteDetail;
return $this;
}
/**
* @return mixed
*/
public function getMontantDetail()
{
return $this->montantDetail;
}
/**
* @param mixed $montantDetail
* @return BtlfStatistiques
*/
public function setMontantDetail($montantDetail)
{
$this->montantDetail = $montantDetail;
return $this;
}
/**
* @return mixed
*/
public function getVenteCollectivite()
{
return $this->venteCollectivite;
}
/**
* @param mixed $venteCollectivite
* @return BtlfStatistiques
*/
public function setVenteCollectivite($venteCollectivite)
{
$this->venteCollectivite = $venteCollectivite;
return $this;
}
/**
* @return mixed
*/
public function getMontantCollectivite()
{
return $this->montantCollectivite;
}
/**
* @param mixed $montantCollectivite
* @return BtlfStatistiques
*/
public function setMontantCollectivite($montantCollectivite)
{
$this->montantCollectivite = $montantCollectivite;
return $this;
}
/**
* @return mixed
*/
public function getStock()
{
return $this->stock;
}
/**
* @param mixed $stock
* @return BtlfStatistiques
*/
public function setStock($stock)
{
$this->stock = $stock;
return $this;
}
/**
* @return mixed
*/
public function getRetour()
{
return $this->retour;
}
/**
* @param mixed $retour
* @return BtlfStatistiques
*/
public function setRetour($retour)
{
$this->retour = $retour;
return $this;
}
/**
* @return Titre
*/
public function getProduit(): Titre
{
return $this->produit;
}
/**
* @param Titre $produit
* @return BtlfStatistiques
*/
public function setProduit(Titre $produit)
{
$this->produit = $produit;
return $this;
}
/**
* @return Company
*/
public function getCompany(): Company
{
return $this->company;
}
/**
* @param Company $company
* @return BtlfStatistiques
*/
public function setCompany(Company $company)
{
$this->company = $company;
return $this;
}
/**
* @return TitreCompany
*/
public function getTitreCompany(): TitreCompany
{
return $this->titreCompany;
}
/**
* @param TitreCompany $titreCompany
* @return BtlfStatistiques
*/
public function setTitreCompany(TitreCompany $titreCompany)
{
$this->titreCompany = $titreCompany;
return $this;
}
/**
* @return mixed
*/
public function getCommande()
{
return $this->commande;
}
/**
* @param mixed $commande
* @return BtlfStatistiques
*/
public function setCommande($commande)
{
$this->commande = $commande;
return $this;
}
}