src/Entity/Config.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\DBAL\Types\Types;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Gedmo\Mapping\Annotation as Gedmo;
  6. /**
  7.  * @ORM\Entity
  8.  * @ORM\Table(name="mmpp_config")
  9.  */
  10. class Config
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\Column(type="integer")
  15.      * @ORM\GeneratedValue(strategy="AUTO")
  16.      */
  17.     protected $id;
  18.     /**
  19.      * @ORM\Column(name="config_key", type="string", length=255)
  20.      */
  21.     protected $key;
  22.     /**
  23.      * @ORM\Column(name="config_value", type="text")
  24.      */
  25.     protected $value;
  26.     /**
  27.      * @ORM\ManyToOne(targetEntity="Center", inversedBy="configs")
  28.      * @ORM\JoinColumn(name="center_id", referencedColumnName="id")
  29.      */
  30.     protected $center;
  31.     public function getId(): ?int
  32.     {
  33.         return $this->id;
  34.     }
  35.     public function getKey(): ?string
  36.     {
  37.         return $this->key;
  38.     }
  39.     public function setKey(string $key): self
  40.     {
  41.         $this->key $key;
  42.         return $this;
  43.     }
  44.     public function getValue(): ?string
  45.     {
  46.         return $this->value;
  47.     }
  48.     public function setValue(string $value): self
  49.     {
  50.         $this->value $value;
  51.         return $this;
  52.     }
  53.     public function getCenter(): ?Center
  54.     {
  55.         return $this->center;
  56.     }
  57.     public function setCenter(?Center $center): self
  58.     {
  59.         $this->center $center;
  60.         return $this;
  61.     }
  62. }