src/Entity/IctoParampov.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\IctoParampovRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=IctoParampovRepository::class)
  7.  */
  8. class IctoParampov
  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)
  18.      */
  19.     private $designation;
  20.     /**
  21.      * @ORM\Column(type="float")
  22.      */
  23.     private $montant_min;
  24.     /**
  25.      * @ORM\Column(type="float")
  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=IctusPharmacie::class, inversedBy="ictoParampovs")
  42.      * @ORM\JoinColumn(nullable=false)
  43.      */
  44.     private $pharmacie;
  45.     public function __construct(){
  46.         $this->created_at = new \DateTimeImmutable();
  47.     }
  48.     public function getId(): ?int
  49.     {
  50.         return $this->id;
  51.     }
  52.     public function getDesignation(): ?string
  53.     {
  54.         return $this->designation;
  55.     }
  56.     public function setDesignation(string $designation): self
  57.     {
  58.         $this->designation $designation;
  59.         return $this;
  60.     }
  61.     public function getMontantMin(): ?float
  62.     {
  63.         return $this->montant_min;
  64.     }
  65.     public function setMontantMin(float $montant_min): self
  66.     {
  67.         $this->montant_min $montant_min;
  68.         return $this;
  69.     }
  70.     public function getMontantMax(): ?float
  71.     {
  72.         return $this->montant_max;
  73.     }
  74.     public function setMontantMax(float $montant_max): self
  75.     {
  76.         $this->montant_max $montant_max;
  77.         return $this;
  78.     }
  79.     public function getPourcentage(): ?float
  80.     {
  81.         return $this->pourcentage;
  82.     }
  83.     public function setPourcentage(float $pourcentage): self
  84.     {
  85.         $this->pourcentage $pourcentage;
  86.         return $this;
  87.     }
  88.     public function getCreatedAt(): ?\DateTimeImmutable
  89.     {
  90.         return $this->created_at;
  91.     }
  92.     public function setCreatedAt(\DateTimeImmutable $created_at): self
  93.     {
  94.         $this->created_at $created_at;
  95.         return $this;
  96.     }
  97.     public function getModifiedAt(): ?\DateTimeImmutable
  98.     {
  99.         return $this->modified_at;
  100.     }
  101.     public function setModifiedAt(?\DateTimeImmutable $modified_at): self
  102.     {
  103.         $this->modified_at $modified_at;
  104.         return $this;
  105.     }
  106.     public function getPharmacie(): ?IctusPharmacie
  107.     {
  108.         return $this->pharmacie;
  109.     }
  110.     public function setPharmacie(?IctusPharmacie $pharmacie): self
  111.     {
  112.         $this->pharmacie $pharmacie;
  113.         return $this;
  114.     }
  115. }