<?php
namespace App\Entity;
use ApiPlatform\Core\Annotation\ApiResource;
use App\Repository\CoreConfigDataRepository;
use Doctrine\ORM\Mapping as ORM;
#[ApiResource(mercure: true)]
#[ORM\Entity(repositoryClass: CoreConfigDataRepository::class)]
class CoreConfigData
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'string', length: 255)]
private $config_key;
#[ORM\Column(type: 'text', nullable: true)]
private $config_value;
public function getId(): ?int
{
return $this->id;
}
public function getConfigKey(): ?string
{
return $this->config_key;
}
public function setConfigKey(string $config_key): self
{
$this->config_key = $config_key;
return $this;
}
public function getConfigValue(): ?string
{
return $this->config_value;
}
public function setConfigValue(?string $config_value): self
{
$this->config_value = $config_value;
return $this;
}
}