src/Entity/Setting.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Entity(repositoryClass="App\Repository\SettingRepository")
  6.  */
  7. class Setting
  8. {
  9.     /**
  10.      * @ORM\Id()
  11.      * @ORM\GeneratedValue()
  12.      * @ORM\Column(type="integer")
  13.      */
  14.     private $id;
  15.     /**
  16.      * @ORM\Column(type="string", length=255)
  17.      */
  18.     private $name;
  19.     /**
  20.      * @ORM\Column(type="text")
  21.      */
  22.     private $value;
  23.     /**
  24.      * @ORM\Column(type="datetime", nullable=true)
  25.      */
  26.     private $updated;
  27.     public function getId(): ?int
  28.     {
  29.         return $this->id;
  30.     }
  31.     public function getName(): ?string
  32.     {
  33.         return $this->name;
  34.     }
  35.     public function setName(string $name): self
  36.     {
  37.         $this->name $name;
  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.     public function getUpdated(): ?\DateTimeInterface
  50.     {
  51.         return $this->updated;
  52.     }
  53.     public function setUpdated(?\DateTimeInterface $updated): self
  54.     {
  55.         $this->updated $updated;
  56.         return $this;
  57.     }
  58. }