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