<?php
namespace App\Entity;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
/**
* @ORM\Entity
* @ORM\Table(name="mmpp_config")
*/
class Config
{
/**
* @ORM\Id
* @ORM\Column(type="integer")
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $id;
/**
* @ORM\Column(name="config_key", type="string", length=255)
*/
protected $key;
/**
* @ORM\Column(name="config_value", type="text")
*/
protected $value;
/**
* @ORM\ManyToOne(targetEntity="Center", inversedBy="configs")
* @ORM\JoinColumn(name="center_id", referencedColumnName="id")
*/
protected $center;
public function getId(): ?int
{
return $this->id;
}
public function getKey(): ?string
{
return $this->key;
}
public function setKey(string $key): self
{
$this->key = $key;
return $this;
}
public function getValue(): ?string
{
return $this->value;
}
public function setValue(string $value): self
{
$this->value = $value;
return $this;
}
public function getCenter(): ?Center
{
return $this->center;
}
public function setCenter(?Center $center): self
{
$this->center = $center;
return $this;
}
}