src/Entity/CoreConfigData.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use ApiPlatform\Core\Annotation\ApiResource;
  4. use App\Repository\CoreConfigDataRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ApiResource(mercuretrue)]
  7. #[ORM\Entity(repositoryClassCoreConfigDataRepository::class)]
  8. class CoreConfigData
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column(type'integer')]
  13.     private $id;
  14.     #[ORM\Column(type'string'length255)]
  15.     private $config_key;
  16.     #[ORM\Column(type'text'nullabletrue)]
  17.     private $config_value;
  18.     public function getId(): ?int
  19.     {
  20.         return $this->id;
  21.     }
  22.     public function getConfigKey(): ?string
  23.     {
  24.         return $this->config_key;
  25.     }
  26.     public function setConfigKey(string $config_key): self
  27.     {
  28.         $this->config_key $config_key;
  29.         return $this;
  30.     }
  31.     public function getConfigValue(): ?string
  32.     {
  33.         return $this->config_value;
  34.     }
  35.     public function setConfigValue(?string $config_value): self
  36.     {
  37.         $this->config_value $config_value;
  38.         return $this;
  39.     }
  40. }