src/Entity/CategorieDepense.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CategorieDepenseRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=CategorieDepenseRepository::class)
  7.  */
  8. class CategorieDepense
  9. {
  10.     /**
  11.      * @ORM\ManyToOne(targetEntity="\App\Entity\Boutique")
  12.      */
  13.     private $boutique;
  14.     
  15.     /**
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue
  18.      * @ORM\Column(type="integer")
  19.      */
  20.     private $id;
  21.     /**
  22.      * @ORM\Column(type="string", length=255, nullable=true)
  23.      */
  24.     private $nom;
  25.     /**
  26.      * @ORM\Column(type="string", length="255", nullable=true)
  27.      */
  28.     private $groupeCharge; //Charge d'exploitation, Charge financière, Charge exceptionnelles
  29.     public function getId(): ?int
  30.     {
  31.         return $this->id;
  32.     }
  33.     public function getNom(): ?string
  34.     {
  35.         return $this->nom;
  36.     }
  37.     public function setNom(?string $nom): self
  38.     {
  39.         $this->nom = $nom;
  40.         return $this;
  41.     }
  42.     public function getBoutique(): ?Boutique
  43.     {
  44.         return $this->boutique;
  45.     }
  46.     public function setBoutique(?Boutique $boutique): self
  47.     {
  48.         $this->boutique = $boutique;
  49.         return $this;
  50.     }
  51.     public function getGroupeCharge(): ?string
  52.     {
  53.         return $this->groupeCharge;
  54.     }
  55.     public function setGroupeCharge(?string $groupeCharge): self
  56.     {
  57.         $this->groupeCharge = $groupeCharge;
  58.         return $this;
  59.     }
  60. }