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