src/Entity/IctoParamgeneral.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\IctoParamgeneralRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=IctoParamgeneralRepository::class)
  7.  */
  8. class IctoParamgeneral
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="string", length=255, nullable=true)
  18.      */
  19.     private $designation;
  20.     /**
  21.      * @ORM\Column(type="integer")
  22.      */
  23.     private $montant_min;
  24.     /**
  25.      * @ORM\Column(type="integer")
  26.      */
  27.     private $montant_max;
  28.     /**
  29.      * @ORM\Column(type="float")
  30.      */
  31.     private $pourcentage;
  32.     /**
  33.      * @ORM\Column(type="datetime_immutable")
  34.      */
  35.     private $created_at;
  36.     /**
  37.      * @ORM\Column(type="datetime", nullable=true)
  38.      */
  39.     private $modified_at;
  40.     /**
  41.      * @ORM\ManyToOne(targetEntity=Pays::class, inversedBy="ictoParamgenerals")
  42.      */
  43.     private $pays;
  44.     public function __construct(){
  45.         $this->created_at = new \DateTimeImmutable();
  46.     }
  47.     public function getId(): ?int
  48.     {
  49.         return $this->id;
  50.     }
  51.     public function getDesignation(): ?string
  52.     {
  53.         return $this->designation;
  54.     }
  55.     public function setDesignation(?string $designation): self
  56.     {
  57.         $this->designation $designation;
  58.         return $this;
  59.     }
  60.     public function getMontantMin(): ?int
  61.     {
  62.         return $this->montant_min;
  63.     }
  64.     public function setMontantMin(int $montant_min): self
  65.     {
  66.         $this->montant_min $montant_min;
  67.         return $this;
  68.     }
  69.     public function getMontantMax(): ?int
  70.     {
  71.         return $this->montant_max;
  72.     }
  73.     public function setMontantMax(int $montant_max): self
  74.     {
  75.         $this->montant_max $montant_max;
  76.         return $this;
  77.     }
  78.     public function getPourcentage(): ?float
  79.     {
  80.         return $this->pourcentage;
  81.     }
  82.     public function setPourcentage(float $pourcentage): self
  83.     {
  84.         $this->pourcentage $pourcentage;
  85.         return $this;
  86.     }
  87.     public function getCreatedAt(): ?\DateTimeImmutable
  88.     {
  89.         return $this->created_at;
  90.     }
  91.     public function setCreatedAt(\DateTimeImmutable $created_at): self
  92.     {
  93.         $this->created_at $created_at;
  94.         return $this;
  95.     }
  96.     public function getModifiedAt(): ?\DateTimeImmutable
  97.     {
  98.         return $this->modified_at;
  99.     }
  100.     public function setModifiedAt(?\DateTimeImmutable $modified_at): self
  101.     {
  102.         $this->modified_at $modified_at;
  103.         return $this;
  104.     }
  105.     public function getPays(): ?Pays
  106.     {
  107.         return $this->pays;
  108.     }
  109.     public function setPays(?Pays $pays): self
  110.     {
  111.         $this->pays $pays;
  112.         return $this;
  113.     }
  114. }