src/Infrastructure/Doctrine/Entity/DoctrineIzOrderPriceParameter.php line 13

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Infrastructure\Doctrine\Entity;
  4. use App\Domain\Common\Entity\IzOrderPriceParameter;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Entity(repositoryClass="App\Infrastructure\Doctrine\Repository\DoctrineIzOrderPriceParameterRepository")
  8.  */
  9. class DoctrineIzOrderPriceParameter implements IzOrderPriceParameter
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\Column(type="string", length=16, unique=true)
  14.      */
  15.     private string $codeTpm '';
  16.     /**
  17.      * @ORM\Column(type="string", length=191, nullable=true)
  18.      */
  19.     private ?string $libelle null;
  20.     /**
  21.      * @ORM\Column(type="integer", nullable=true)
  22.      */
  23.     private ?int $numeroDePriorite null;
  24.     /**
  25.      * @ORM\Column(type="boolean", options={"default": 0})
  26.      */
  27.     private ?bool $typeCatalogue false;
  28.     /**
  29.      * @ORM\Column(type="string", length=191, nullable=true)
  30.      */
  31.     private ?string $typeRange null;
  32.     /**
  33.      * @ORM\Column(type="boolean", options={"default": 0})
  34.      */
  35.     private bool $prixModifiable false;
  36.     /**
  37.      * @ORM\Column(type="boolean", options={"default": 0})
  38.      */
  39.     private bool $recuperationPrix false;
  40.     /**
  41.      * @ORM\Column(type="float", nullable=true)
  42.      */
  43.     private ?float $remise1 null;
  44.     /**
  45.      * @ORM\Column(type="float", nullable=true)
  46.      */
  47.     private ?float $remise2 null;
  48.     /**
  49.      * @ORM\Column(type="float", nullable=true)
  50.      */
  51.     private ?float $remise3 null;
  52.     /**
  53.      * @ORM\Column(type="string", length=4, nullable=true)
  54.      */
  55.     private ?string $critere1 null;
  56.     /**
  57.      * @ORM\Column(type="string", length=4, nullable=true)
  58.      */
  59.     private ?string $critere2 null;
  60.     /**
  61.      * @ORM\Column(type="boolean", options={"default": 0})
  62.      */
  63.     private bool $negocie false;
  64.     public function getCodeTpm(): string
  65.     {
  66.         return $this->codeTpm;
  67.     }
  68.     public function setCodeTpm(string $codeTpm): void
  69.     {
  70.         $this->codeTpm $codeTpm;
  71.     }
  72.     public function getLibelle(): ?string
  73.     {
  74.         return $this->libelle;
  75.     }
  76.     public function setLibelle(?string $libelle): void
  77.     {
  78.         $this->libelle $libelle;
  79.     }
  80.     public function getNumeroDePriorite(): ?int
  81.     {
  82.         return $this->numeroDePriorite;
  83.     }
  84.     public function setNumeroDePriorite(?int $numeroDePriorite): void
  85.     {
  86.         $this->numeroDePriorite $numeroDePriorite;
  87.     }
  88.     public function getTypeCatalogue(): ?bool
  89.     {
  90.         return $this->typeCatalogue;
  91.     }
  92.     /**
  93.      * {@inheritDoc}
  94.      */
  95.     public function setTypeCatalogue($typeCatalogue): void
  96.     {
  97.         if (\in_array($typeCatalogue, ['O''N'], true)) {
  98.             $typeCatalogue 'O' === $typeCatalogue;
  99.         }
  100.         $this->typeCatalogue = (bool) $typeCatalogue;
  101.     }
  102.     public function getTypeRange(): ?string
  103.     {
  104.         return $this->typeRange;
  105.     }
  106.     public function setTypeRange(?string $typeRange): void
  107.     {
  108.         $this->typeRange $typeRange;
  109.     }
  110.     public function isPrixModifiable(): bool
  111.     {
  112.         return $this->prixModifiable;
  113.     }
  114.     /**
  115.      * {@inheritDoc}
  116.      */
  117.     public function setPrixModifiable($prixModifiable): void
  118.     {
  119.         if (\in_array($prixModifiable, ['O''N'], true)) {
  120.             $prixModifiable 'O' === $prixModifiable;
  121.         }
  122.         $this->prixModifiable = (bool) $prixModifiable;
  123.     }
  124.     public function isRecuperationPrix(): bool
  125.     {
  126.         return $this->recuperationPrix;
  127.     }
  128.     /**
  129.      * {@inheritDoc}
  130.      */
  131.     public function setRecuperationPrix($recuperationPrix): void
  132.     {
  133.         if (\in_array($recuperationPrix, ['O''N'], true)) {
  134.             $recuperationPrix 'O' === $recuperationPrix;
  135.         }
  136.         $this->recuperationPrix = (bool) $recuperationPrix;
  137.     }
  138.     public function getRemise1(): ?float
  139.     {
  140.         return $this->remise1;
  141.     }
  142.     public function setRemise1(?float $remise1): void
  143.     {
  144.         $this->remise1 $remise1;
  145.     }
  146.     public function getRemise2(): ?float
  147.     {
  148.         return $this->remise2;
  149.     }
  150.     public function setRemise2(?float $remise2): void
  151.     {
  152.         $this->remise2 $remise2;
  153.     }
  154.     public function getRemise3(): ?float
  155.     {
  156.         return $this->remise3;
  157.     }
  158.     public function setRemise3(?float $remise3): void
  159.     {
  160.         $this->remise3 $remise3;
  161.     }
  162.     public function getCritere1(): ?string
  163.     {
  164.         return $this->critere1;
  165.     }
  166.     public function setCritere1(?string $critere1): void
  167.     {
  168.         $this->critere1 $critere1;
  169.     }
  170.     public function getCritere2(): ?string
  171.     {
  172.         return $this->critere2;
  173.     }
  174.     public function setCritere2(?string $critere2): void
  175.     {
  176.         $this->critere2 $critere2;
  177.     }
  178.     public function isNegocie(): bool
  179.     {
  180.         return $this->negocie;
  181.     }
  182.     /**
  183.      * {@inheritDoc}
  184.      */
  185.     public function setNegocie($negocie): void
  186.     {
  187.         if (\in_array($negocie, ['O''N'], true)) {
  188.             $negocie 'O' === $negocie;
  189.         }
  190.         $this->negocie = (bool) $negocie;
  191.     }
  192. }