src/Entity/Expensive.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Symfony\Component\HttpFoundation\File\File;
  5. use Symfony\Component\HttpFoundation\File\UploadedFile;
  6. use Gedmo\Mapping\Annotation as Gedmo;
  7. /**
  8.  * @ORM\Table(name="gestock_expensive")
  9.  * @ORM\Entity(repositoryClass="App\Repository\ExpensiveRepository")
  10.  */
  11. class Expensive
  12. {
  13.     /**
  14.      * @ORM\ManyToOne(targetEntity="\App\Entity\CategorieDepense")
  15.      */
  16.     private $categorieDepense;
  17.     
  18.     /**
  19.      * @ORM\ManyToOne(targetEntity="\App\Entity\Boutique")
  20.      */
  21.     private $boutique;
  22.     /**
  23.      * @ORM\ManyToOne(targetEntity="\App\Entity\Tiers")
  24.      */
  25.     private $tiers;
  26.     /**
  27.      * @ORM\ManyToOne(targetEntity="\App\Entity\AppUser")
  28.      */
  29.     private $creePar;
  30.     /**
  31.      * @ORM\ManyToOne(targetEntity="\App\Entity\AppUser")
  32.      */
  33.     private $modifiePar;
  34.     /**
  35.      * @ORM\ManyToOne(targetEntity="\App\Entity\AppUser")
  36.      */
  37.     private $supprimePar;
  38.     
  39.     
  40.     /**
  41.      * @ORM\Id()
  42.      * @ORM\GeneratedValue()
  43.      * @ORM\Column(type="integer")
  44.      */
  45.     private $id;
  46.     
  47.     /**
  48.      * @ORM\Column(type="datetime", nullable=true)
  49.      */
  50.     private $laDate;
  51.     
  52.     /**
  53.      * @ORM\Column(type="string", length="255", nullable=true)
  54.      */
  55.     private $piece;
  56.     /**
  57.      * @ORM\Column(type="text", nullable=true)
  58.      */
  59.     private $detail;
  60.     /**
  61.      * @ORM\Column(type="text", nullable=true)
  62.      */
  63.     private $moyenDePaiement;
  64.     /**
  65.      * @var float
  66.      *
  67.      * @ORM\Column(type="float", length=255, nullable=true)
  68.      */
  69.     private $montant;
  70.     
  71.     /**
  72.      * @ORM\Column(type="string", length=255,  nullable=true)
  73.      */
  74.     private $mois;
  75.     
  76.     /**
  77.      * @ORM\Column(type="string", length=255,  nullable=true)
  78.      */
  79.     private $annee;
  80.     /**
  81.      * @ORM\Column(type="boolean",  nullable=true)
  82.      */
  83.     private $estSupprime;
  84.     
  85.     public function __construct()
  86.     {
  87.         $this->mois date('mY');
  88.         $this->annee date('Y');
  89.         $this->laDate = new \DateTime();
  90.         $this->estSupprime false;
  91.     }
  92.     public function getId(): ?int
  93.     {
  94.         return $this->id;
  95.     }
  96.     /**
  97.      * Set detail
  98.      *
  99.      * @param string $detail
  100.      *
  101.      * @return Expensive
  102.      */
  103.     public function setDetail($detail)
  104.     {
  105.         $this->detail $detail;
  106.         return $this;
  107.     }
  108.     /**
  109.      * Get detail
  110.      *
  111.      * @return string
  112.      */
  113.     public function getDetail()
  114.     {
  115.         return $this->detail;
  116.     }
  117.    
  118.      /**
  119.      * Set boutique
  120.      *
  121.      * @param \App\Entity\Boutique $boutique
  122.      *
  123.      * @return Produit
  124.      */
  125.     public function setBoutique(\App\Entity\Boutique $boutique)
  126.     {
  127.         $this->boutique $boutique;
  128.         return $this;
  129.     }
  130.     /**
  131.      * Get boutique
  132.      *
  133.      * @return \App\Entity\Boutique
  134.      */
  135.     public function getBoutique()
  136.     {
  137.         return $this->boutique;
  138.     }
  139.     public function getLaDate(): ?\DateTimeInterface
  140.     {
  141.         return $this->laDate;
  142.     }
  143.     public function setLaDate(?\DateTimeInterface $laDate): self
  144.     {
  145.         $this->laDate $laDate;
  146.         return $this;
  147.     }
  148.     public function getMontant(): ?float
  149.     {
  150.         return $this->montant;
  151.     }
  152.     public function setMontant(?float $montant): self
  153.     {
  154.         $this->montant $montant;
  155.         return $this;
  156.     }
  157.     
  158.     /**
  159.      * Set mois
  160.      *
  161.      * @param string $mois
  162.      *
  163.      * @return Commande
  164.      */
  165.     public function setMois($mois)
  166.     {
  167.         $this->mois $mois;
  168.         return $this;
  169.     }
  170.     /**
  171.      * Get mois
  172.      *
  173.      * @return string
  174.      */
  175.     public function getMois()
  176.     {
  177.         return $this->mois;
  178.     }
  179.     
  180.     /**
  181.      * Set annee
  182.      *
  183.      * @param string $annee
  184.      *
  185.      * @return Commande
  186.      */
  187.     public function setAnnee($annee)
  188.     {
  189.         $this->annee $annee;
  190.         return $this;
  191.     }
  192.     /**
  193.      * Get annee
  194.      *
  195.      * @return string
  196.      */
  197.     public function getAnnee()
  198.     {
  199.         return $this->annee;
  200.     }
  201.     public function getCategorieDepense(): ?CategorieDepense
  202.     {
  203.         return $this->categorieDepense;
  204.     }
  205.     public function setCategorieDepense(?CategorieDepense $categorieDepense): self
  206.     {
  207.         $this->categorieDepense $categorieDepense;
  208.         return $this;
  209.     }
  210.     public function getTiers(): ?Tiers
  211.     {
  212.         return $this->tiers;
  213.     }
  214.     public function setTiers(?Tiers $tiers): self
  215.     {
  216.         $this->tiers $tiers;
  217.         return $this;
  218.     }
  219.     public function getCreePar(): ?AppUser
  220.     {
  221.         return $this->creePar;
  222.     }
  223.     public function setCreePar(?AppUser $creePar): self
  224.     {
  225.         $this->creePar $creePar;
  226.         return $this;
  227.     }
  228.     public function getModifiePar(): ?AppUser
  229.     {
  230.         return $this->modifiePar;
  231.     }
  232.     public function setModifiePar(?AppUser $modifiePar): self
  233.     {
  234.         $this->modifiePar $modifiePar;
  235.         return $this;
  236.     }
  237.     public function getSupprimePar(): ?AppUser
  238.     {
  239.         return $this->supprimePar;
  240.     }
  241.     public function setSupprimePar(?AppUser $supprimePar): self
  242.     {
  243.         $this->supprimePar $supprimePar;
  244.         return $this;
  245.     }
  246.     public function isEstSupprime(): ?bool
  247.     {
  248.         return $this->estSupprime;
  249.     }
  250.     public function setEstSupprime(?bool $estSupprime): self
  251.     {
  252.         $this->estSupprime $estSupprime;
  253.         return $this;
  254.     }
  255.     public function getPiece(): ?string
  256.     {
  257.         return $this->piece;
  258.     }
  259.     public function setPiece(?string $piece): self
  260.     {
  261.         $this->piece $piece;
  262.         return $this;
  263.     }
  264.     public function getMoyenDePaiement(): ?string
  265.     {
  266.         return $this->moyenDePaiement;
  267.     }
  268.     public function setMoyenDePaiement(?string $moyenDePaiement): self
  269.     {
  270.         $this->moyenDePaiement $moyenDePaiement;
  271.         return $this;
  272.     }
  273.     
  274. }