<?php
namespace App\Entity;
use App\Repository\ConfigurationRepository;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Serializer\Annotation\Groups;
/**
* @ORM\Entity(repositoryClass=ConfigurationRepository::class)
* @ORM\Table(
* indexes={
* @ORM\Index(name="idx_config_name", columns={"name"})
* }
* )
*/
class Configuration
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
* @Groups({"ConfigurationList"})
*/
private $id;
/**
* @ORM\Column(type="string", length=255)
* @Groups({"ConfigurationList"})
*/
private $name;
/**
* @ORM\Column(type="text")
* @Groups({"ConfigurationList"})
*/
private $value;
/**
* @ORM\Column(type="boolean", nullable=true)
* @Groups({"ConfigurationList"})
*/
private $visible;
public function getId(): ?int
{
return $this->id;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(string $name): self
{
$this->name = $name;
return $this;
}
public function getValue(): ?string
{
return $this->value;
}
public function setValue(string $value): self
{
$this->value = $value;
return $this;
}
public function getVisible(): ?bool
{
return $this->visible;
}
public function setVisible(?bool $visible): self
{
$this->visible = $visible;
return $this;
}
}