<?php
namespace App\Entity;
use App\Repository\ConfigRepository;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
/**
* @ORM\Entity(repositoryClass=ConfigRepository::class)
*/
class Config
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255)
* @Assert\NotBlank
*/
private $field;
/**
* @ORM\Column(type="text", nullable=true)
* @Assert\NotBlank
*/
private $value;
public function getId(): ?int
{
return $this->id;
}
public function getField(): ?string
{
return $this->field;
}
public function setField(string $field): self
{
$this->field = $field;
return $this;
}
public function getValue(): ?string
{
return $this->value;
}
public function setValue(?string $value): self
{
$this->value = $value;
return $this;
}
}