src/Entity/Config.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ConfigRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Validator\Constraints as Assert;
  6. /**
  7.  * @ORM\Entity(repositoryClass=ConfigRepository::class)
  8.  */
  9. class Config
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\Column(type="string", length=255)
  19.      * @Assert\NotBlank
  20.      */
  21.     private $field;
  22.     /**
  23.      * @ORM\Column(type="text", nullable=true)
  24.      * @Assert\NotBlank
  25.      */
  26.     private $value;
  27.     public function getId(): ?int
  28.     {
  29.         return $this->id;
  30.     }
  31.     public function getField(): ?string
  32.     {
  33.         return $this->field;
  34.     }
  35.     public function setField(string $field): self
  36.     {
  37.         $this->field $field;
  38.         return $this;
  39.     }
  40.     public function getValue(): ?string
  41.     {
  42.         return $this->value;
  43.     }
  44.     public function setValue(?string $value): self
  45.     {
  46.         $this->value $value;
  47.         return $this;
  48.     }
  49. }