<?phpnamespace App\Entity;use App\Repository\PosteConfigRepository;use Doctrine\ORM\Mapping as ORM;use Symfony\Component\Serializer\Annotation\Groups;/** * @ORM\Entity(repositoryClass=PosteConfigRepository::class) */class PosteConfig extends EntityBase{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @Groups("api") * @ORM\Column(type="string", length=255) */ private $fieldCode; /** * @Groups("api") * @ORM\Column(type="string", length=255) */ private $fieldLabel; /** * @Groups("api") * @ORM\Column(type="float", nullable=true) */ private $maxValue; /** * @Groups("api") * @ORM\Column(type="float", nullable=true) */ private $minValue; /** * @ORM\ManyToOne(targetEntity=Poste::class, inversedBy="posteConfigs") * @ORM\JoinColumn(nullable=false) */ private $poste; /** * @Groups("api") * @ORM\Column(type="string", length=255, nullable=false) */ private $type; /** * @ORM\Column(type="integer", nullable=true) */ private $ordre; public function getId(): ?int { return $this->id; } public function getFieldCode(): ?string { return $this->fieldCode; } public function setFieldCode(string $fieldCode): self { $this->fieldCode = $fieldCode; return $this; } public function getFieldLabel(): ?string { return $this->fieldLabel; } public function setFieldLabel(string $fieldLabel): self { $this->fieldLabel = $fieldLabel; return $this; } public function getMaxValue(): ?float { return $this->maxValue; } public function setMaxValue(?float $maxValue): self { $this->maxValue = $maxValue; return $this; } public function getMinValue(): ?float { return $this->minValue; } public function setMinValue(?float $minValue): self { $this->minValue = $minValue; return $this; } public function getPoste(): ?Poste { return $this->poste; } public function setPoste(?Poste $poste): self { $this->poste = $poste; return $this; } public function getType(): ?string { return $this->type; } public function setType(?string $type): self { $this->type = $type; return $this; } public function getOrdre(): ?int { return $this->ordre; } public function setOrdre(?int $ordre): self { $this->ordre = $ordre; return $this; }}