src/Entity/Configuracion.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Gedmo\Mapping\Annotation as Gedmo;
  5. /**
  6.  * @ORM\Entity(repositoryClass="App\Repository\ConfiguracionRepository")
  7.  * @ORM\Table(name="configuracion", schema="perseo")
  8.  * @Gedmo\SoftDeleteable(fieldName="deletedAt", timeAware=false, hardDelete=true)
  9.  */
  10. class Configuracion
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\Column(type="bigint", options={"unsigned":true})
  15.      * @ORM\GeneratedValue(strategy="AUTO")
  16.      */
  17.     protected $id;
  18.     /**
  19.      * @ORM\Column(type="string", nullable=true)
  20.      */
  21.     protected $name;
  22.     /**
  23.      * @ORM\Column(type="string", nullable=true)
  24.      */
  25.     protected $class;
  26.     /**
  27.      * @ORM\Column(type="string", nullable=true)
  28.      */
  29.     protected $field;
  30.     /**
  31.      * @ORM\Column(type="string", nullable=true)
  32.      */
  33.     protected $value;
  34.     /**
  35.      * @ORM\Column(type="string", nullable=true, name="condition_field")
  36.      */
  37.     protected $conditionField;
  38.     /**
  39.      * @ORM\Column(type="string", nullable=true)
  40.      */
  41.     protected $description;
  42.     /**
  43.      * @ORM\Column(type="datetime", nullable=true, name="deleted_at")
  44.      */
  45.     protected $deletedAt;
  46.     /**
  47.      * @ORM\Column(type="datetime", nullable=false, name="updated_at", options={"default":"2022-01-01 00:00:00"})
  48.      * @Gedmo\Timestampable(on="update")
  49.      */
  50.     protected $updatedAt;
  51.     /**
  52.      * @ORM\Column(type="datetime", nullable=false, name="created_at", options={"default":"2022-01-01 00:00:00"})
  53.      * @Gedmo\Timestampable(on="create")
  54.      */
  55.     protected $createdAt;
  56.     public function __toString(): string
  57.     {
  58.         return $this->getName()??'---';
  59.     }
  60.     public function getId(): ?string
  61.     {
  62.         return $this->id;
  63.     }
  64.     public function getName(): ?string
  65.     {
  66.         return $this->name;
  67.     }
  68.     public function setName(?string $name): self
  69.     {
  70.         $this->name $name;
  71.         return $this;
  72.     }
  73.     public function getClass(): ?string
  74.     {
  75.         return $this->class;
  76.     }
  77.     public function setClass(?string $class): self
  78.     {
  79.         $this->class $class;
  80.         return $this;
  81.     }
  82.     public function getField(): ?string
  83.     {
  84.         return $this->field;
  85.     }
  86.     public function setField(?string $field): self
  87.     {
  88.         $this->field $field;
  89.         return $this;
  90.     }
  91.     public function getValue(): ?string
  92.     {
  93.         return $this->value;
  94.     }
  95.     public function setValue(?string $value): self
  96.     {
  97.         $this->value $value;
  98.         return $this;
  99.     }
  100.     public function getConditionField(): ?string
  101.     {
  102.         return $this->conditionField;
  103.     }
  104.     public function setConditionField(?string $condition): self
  105.     {
  106.         $this->conditionField $condition;
  107.         return $this;
  108.     }
  109.     public function getDescription(): ?string
  110.     {
  111.         return $this->description;
  112.     }
  113.     public function setDescription(?string $description): self
  114.     {
  115.         $this->description $description;
  116.         return $this;
  117.     }
  118.     public function getDeletedAt(): ?\DateTimeInterface
  119.     {
  120.         return $this->deletedAt;
  121.     }
  122.     public function setDeletedAt(?\DateTimeInterface $deletedAt): self
  123.     {
  124.         $this->deletedAt $deletedAt;
  125.         return $this;
  126.     }
  127.     public function getUpdatedAt(): ?\DateTimeInterface
  128.     {
  129.         return $this->updatedAt;
  130.     }
  131.     public function setUpdatedAt(\DateTimeInterface $updatedAt): self
  132.     {
  133.         $this->updatedAt $updatedAt;
  134.         return $this;
  135.     }
  136.     public function getCreatedAt(): ?\DateTimeInterface
  137.     {
  138.         return $this->createdAt;
  139.     }
  140.     public function setCreatedAt(\DateTimeInterface $createdAt): self
  141.     {
  142.         $this->createdAt $createdAt;
  143.         return $this;
  144.     }
  145. }