src/Entity/Configuracion.php line 14

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