src/Entity/PosteConfig.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PosteConfigRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Serializer\Annotation\Groups;
  6. /**
  7.  * @ORM\Entity(repositoryClass=PosteConfigRepository::class)
  8.  */
  9. class PosteConfig  extends EntityBase
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @Groups("api")
  19.      * @ORM\Column(type="string", length=255)
  20.      */
  21.     private $fieldCode;
  22.     /**
  23.      * @Groups("api")
  24.      * @ORM\Column(type="string", length=255)
  25.      */
  26.     private $fieldLabel;
  27.     /**
  28.      * @Groups("api")
  29.      * @ORM\Column(type="float", nullable=true)
  30.      */
  31.     private $maxValue;
  32.     /**
  33.      * @Groups("api")
  34.      * @ORM\Column(type="float", nullable=true)
  35.      */
  36.     private $minValue;
  37.     /**
  38.      * @ORM\ManyToOne(targetEntity=Poste::class, inversedBy="posteConfigs")
  39.      * @ORM\JoinColumn(nullable=false)
  40.      */
  41.     private $poste;
  42.     /**
  43.      * @Groups("api")
  44.      * @ORM\Column(type="string", length=255, nullable=false)
  45.      */
  46.     private $type;
  47.     /**
  48.      * @ORM\Column(type="integer", nullable=true)
  49.      */
  50.     private $ordre;
  51.     public function getId(): ?int
  52.     {
  53.         return $this->id;
  54.     }
  55.     public function getFieldCode(): ?string
  56.     {
  57.         return $this->fieldCode;
  58.     }
  59.     public function setFieldCode(string $fieldCode): self
  60.     {
  61.         $this->fieldCode $fieldCode;
  62.         return $this;
  63.     }
  64.     public function getFieldLabel(): ?string
  65.     {
  66.         return $this->fieldLabel;
  67.     }
  68.     public function setFieldLabel(string $fieldLabel): self
  69.     {
  70.         $this->fieldLabel $fieldLabel;
  71.         return $this;
  72.     }
  73.     public function getMaxValue(): ?float
  74.     {
  75.         return $this->maxValue;
  76.     }
  77.     public function setMaxValue(?float $maxValue): self
  78.     {
  79.         $this->maxValue $maxValue;
  80.         return $this;
  81.     }
  82.     public function getMinValue(): ?float
  83.     {
  84.         return $this->minValue;
  85.     }
  86.     public function setMinValue(?float $minValue): self
  87.     {
  88.         $this->minValue $minValue;
  89.         return $this;
  90.     }
  91.     public function getPoste(): ?Poste
  92.     {
  93.         return $this->poste;
  94.     }
  95.     public function setPoste(?Poste $poste): self
  96.     {
  97.         $this->poste $poste;
  98.         return $this;
  99.     }
  100.     public function getType(): ?string
  101.     {
  102.         return $this->type;
  103.     }
  104.     public function setType(?string $type): self
  105.     {
  106.         $this->type $type;
  107.         return $this;
  108.     }
  109.     public function getOrdre(): ?int
  110.     {
  111.         return $this->ordre;
  112.     }
  113.     public function setOrdre(?int $ordre): self
  114.     {
  115.         $this->ordre $ordre;
  116.         return $this;
  117.     }
  118. }