src/Entity/Config/Config.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Config;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * Config
  6.  *
  7.  * @ORM\Table(name="config")
  8.  * @ORM\Entity()
  9.  */
  10. class Config
  11. {
  12.     /**
  13.      * @var integer|null
  14.      *
  15.      * @ORM\Column(name="id", type="integer")
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue(strategy="AUTO")
  18.      */
  19.     private ?int $id null;
  20.     /**
  21.      * @var string
  22.      *
  23.      * @ORM\Column(name="name", type="string", length=255)
  24.      */
  25.     private string $name;
  26.     /**
  27.      * @var string|null
  28.      *
  29.      * @ORM\Column(name="path", type="string", length=255, unique=true)
  30.      */
  31.     private ?string $path null;
  32.     /**
  33.      * @var string|null
  34.      *
  35.      * @ORM\Column(name="value", type="string", length=255, nullable=true)
  36.      */
  37.     private ?string $value null;
  38.     /**
  39.      * @var string|null
  40.      *
  41.      * @ORM\Column(name="category", type="string", length=255, nullable=true)
  42.      */
  43.     private ?string $category null;
  44.     /**
  45.      * @var string|null
  46.      *
  47.      * @ORM\Column(name="type", type="string", length=255, nullable=true)
  48.      */
  49.     private ?string $type null;
  50.     /**
  51.      * @var string|null
  52.      *
  53.      * @ORM\Column(name="model", type="string", length=255, nullable=true)
  54.      */
  55.     private ?string $model null;
  56.     /**
  57.      * Get id
  58.      *
  59.      * @return integer|null
  60.      */
  61.     public function getId(): ?int
  62.     {
  63.         return $this->id;
  64.     }
  65.     /**
  66.      * @param int $id
  67.      */
  68.     public function setId(int $id): void
  69.     {
  70.         $this->id $id;
  71.     }
  72.     /**
  73.      * @param string $name
  74.      * @return $this
  75.      */
  76.     public function setName(string $name): Config
  77.     {
  78.         $this->name $name;
  79.         return $this;
  80.     }
  81.     /**
  82.      * @return string
  83.      */
  84.     public function getName(): string
  85.     {
  86.         return $this->name;
  87.     }
  88.     /**
  89.      * @param string $path
  90.      * @return $this
  91.      */
  92.     public function setPath(string $path): Config
  93.     {
  94.         $this->path $path;
  95.         return $this;
  96.     }
  97.     /**
  98.      * @return string|null
  99.      */
  100.     public function getPath(): ?string
  101.     {
  102.         return $this->path;
  103.     }
  104.     /**
  105.      * @param string|null $value
  106.      * @return $this
  107.      */
  108.     public function setValue(?string $value): Config
  109.     {
  110.         $this->value $value;
  111.         return $this;
  112.     }
  113.     /**
  114.      * @return string|null
  115.      */
  116.     public function getValue(): ?string
  117.     {
  118.         return $this->value;
  119.     }
  120.     /**
  121.      * @param string|null $category
  122.      * @return $this
  123.      */
  124.     public function setCategory(?string $category): Config
  125.     {
  126.         $this->category $category;
  127.         return $this;
  128.     }
  129.     /**
  130.      * @return string|null
  131.      */
  132.     public function getCategory(): ?string
  133.     {
  134.         return $this->category;
  135.     }
  136.     /**
  137.      * @param string|null $type
  138.      * @return $this
  139.      */
  140.     public function setType(?string $type): Config
  141.     {
  142.         $this->type $type;
  143.         return $this;
  144.     }
  145.     /**
  146.      * @return string|null
  147.      */
  148.     public function getType(): ?string
  149.     {
  150.         return $this->type;
  151.     }
  152.     /**
  153.      * @param string|null $model
  154.      * @return $this
  155.      */
  156.     public function setModel(?string $model): Config
  157.     {
  158.         $this->model $model;
  159.         return $this;
  160.     }
  161.     /**
  162.      * @return string|null
  163.      */
  164.     public function getModel(): ?string
  165.     {
  166.         return $this->model;
  167.     }
  168.     public function __toString()
  169.     {
  170.         return $this->getName();
  171.     }
  172. }