<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\HttpFoundation\File\File;
use Symfony\Component\HttpFoundation\File\UploadedFile;
use Gedmo\Mapping\Annotation as Gedmo;
/**
* @ORM\Table(name="gestock_expensive")
* @ORM\Entity(repositoryClass="App\Repository\ExpensiveRepository")
*/
class Expensive
{
/**
* @ORM\ManyToOne(targetEntity="\App\Entity\CategorieDepense")
*/
private $categorieDepense;
/**
* @ORM\ManyToOne(targetEntity="\App\Entity\Boutique")
*/
private $boutique;
/**
* @ORM\ManyToOne(targetEntity="\App\Entity\Tiers")
*/
private $tiers;
/**
* @ORM\ManyToOne(targetEntity="\App\Entity\AppUser")
*/
private $creePar;
/**
* @ORM\ManyToOne(targetEntity="\App\Entity\AppUser")
*/
private $modifiePar;
/**
* @ORM\ManyToOne(targetEntity="\App\Entity\AppUser")
*/
private $supprimePar;
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $laDate;
/**
* @ORM\Column(type="string", length="255", nullable=true)
*/
private $piece;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $detail;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $moyenDePaiement;
/**
* @var float
*
* @ORM\Column(type="float", length=255, nullable=true)
*/
private $montant;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $mois;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $annee;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $estSupprime;
public function __construct()
{
$this->mois = date('mY');
$this->annee = date('Y');
$this->laDate = new \DateTime();
$this->estSupprime = false;
}
public function getId(): ?int
{
return $this->id;
}
/**
* Set detail
*
* @param string $detail
*
* @return Expensive
*/
public function setDetail($detail)
{
$this->detail = $detail;
return $this;
}
/**
* Get detail
*
* @return string
*/
public function getDetail()
{
return $this->detail;
}
/**
* Set boutique
*
* @param \App\Entity\Boutique $boutique
*
* @return Produit
*/
public function setBoutique(\App\Entity\Boutique $boutique)
{
$this->boutique = $boutique;
return $this;
}
/**
* Get boutique
*
* @return \App\Entity\Boutique
*/
public function getBoutique()
{
return $this->boutique;
}
public function getLaDate(): ?\DateTimeInterface
{
return $this->laDate;
}
public function setLaDate(?\DateTimeInterface $laDate): self
{
$this->laDate = $laDate;
return $this;
}
public function getMontant(): ?float
{
return $this->montant;
}
public function setMontant(?float $montant): self
{
$this->montant = $montant;
return $this;
}
/**
* Set mois
*
* @param string $mois
*
* @return Commande
*/
public function setMois($mois)
{
$this->mois = $mois;
return $this;
}
/**
* Get mois
*
* @return string
*/
public function getMois()
{
return $this->mois;
}
/**
* Set annee
*
* @param string $annee
*
* @return Commande
*/
public function setAnnee($annee)
{
$this->annee = $annee;
return $this;
}
/**
* Get annee
*
* @return string
*/
public function getAnnee()
{
return $this->annee;
}
public function getCategorieDepense(): ?CategorieDepense
{
return $this->categorieDepense;
}
public function setCategorieDepense(?CategorieDepense $categorieDepense): self
{
$this->categorieDepense = $categorieDepense;
return $this;
}
public function getTiers(): ?Tiers
{
return $this->tiers;
}
public function setTiers(?Tiers $tiers): self
{
$this->tiers = $tiers;
return $this;
}
public function getCreePar(): ?AppUser
{
return $this->creePar;
}
public function setCreePar(?AppUser $creePar): self
{
$this->creePar = $creePar;
return $this;
}
public function getModifiePar(): ?AppUser
{
return $this->modifiePar;
}
public function setModifiePar(?AppUser $modifiePar): self
{
$this->modifiePar = $modifiePar;
return $this;
}
public function getSupprimePar(): ?AppUser
{
return $this->supprimePar;
}
public function setSupprimePar(?AppUser $supprimePar): self
{
$this->supprimePar = $supprimePar;
return $this;
}
public function isEstSupprime(): ?bool
{
return $this->estSupprime;
}
public function setEstSupprime(?bool $estSupprime): self
{
$this->estSupprime = $estSupprime;
return $this;
}
public function getPiece(): ?string
{
return $this->piece;
}
public function setPiece(?string $piece): self
{
$this->piece = $piece;
return $this;
}
public function getMoyenDePaiement(): ?string
{
return $this->moyenDePaiement;
}
public function setMoyenDePaiement(?string $moyenDePaiement): self
{
$this->moyenDePaiement = $moyenDePaiement;
return $this;
}
}