src/Entity/Fielpet/View/PlanesView.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Fielpet\View;
  3. use Doctrine\DBAL\Types\Types;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * PlanesView
  7. *
  8. * @ORM\Table(name="Planes")
  9. * @ORM\Entity
  10. */
  11. class PlanesView
  12. {
  13. /**
  14. * @var int
  15. *
  16. * @ORM\Column(name="id", type="integer", nullable=false)
  17. * @ORM\Id
  18. * @ORM\GeneratedValue(strategy="SEQUENCE")
  19. * @ORM\SequenceGenerator(sequenceName="Planes_id_seq", allocationSize=1, initialValue=1)
  20. */
  21. private $id;
  22. /**
  23. * @var string
  24. *
  25. * @ORM\Column(name="nombre", type="string", length=255, nullable=false)
  26. */
  27. private $nombre;
  28. /**
  29. * @var int
  30. *
  31. * @ORM\Column(name="suma_asegurada", type="integer", nullable=false)
  32. */
  33. private $sumaAsegurada;
  34. /**
  35. * @var int|null
  36. *
  37. * @ORM\Column(name="id_portal", type="integer", nullable=true)
  38. */
  39. private $idPortal;
  40. /**
  41. * @var bool|null
  42. *
  43. * @ORM\Column(name="is_active", type="boolean", nullable=true, options={"default"="1"})
  44. */
  45. private $isActive = true;
  46. /**
  47. * @var float
  48. *
  49. * @ORM\Column(name="costo", type="float", precision=10, scale=0, nullable=false)
  50. */
  51. private $costo;
  52. /**
  53. * @var \DateTime
  54. *
  55. * @ORM\Column(name="createdAt", type="custom_datetimetz", nullable=false)
  56. */
  57. private $createdat;
  58. /**
  59. * @var \DateTime
  60. *
  61. * @ORM\Column(name="updatedAt", type="custom_datetimetz", nullable=false)
  62. */
  63. private $updatedat;
  64. public function getId(): ?int
  65. {
  66. return $this->id;
  67. }
  68. public function getNombre(): ?string
  69. {
  70. return $this->nombre;
  71. }
  72. public function setNombre(string $nombre): self
  73. {
  74. $this->nombre = $nombre;
  75. return $this;
  76. }
  77. public function getSumaAsegurada(): ?int
  78. {
  79. return $this->sumaAsegurada;
  80. }
  81. public function setSumaAsegurada(int $sumaAsegurada): self
  82. {
  83. $this->sumaAsegurada = $sumaAsegurada;
  84. return $this;
  85. }
  86. public function getIdPortal(): ?int
  87. {
  88. return $this->idPortal;
  89. }
  90. public function setIdPortal(?int $idPortal): self
  91. {
  92. $this->idPortal = $idPortal;
  93. return $this;
  94. }
  95. public function getIsActive(): ?bool
  96. {
  97. return $this->isActive;
  98. }
  99. public function setIsActive(?bool $isActive): self
  100. {
  101. $this->isActive = $isActive;
  102. return $this;
  103. }
  104. public function getCosto(): ?float
  105. {
  106. return $this->costo;
  107. }
  108. public function setCosto(float $costo): self
  109. {
  110. $this->costo = $costo;
  111. return $this;
  112. }
  113. public function getCreatedat(): ?\DateTimeInterface
  114. {
  115. return $this->createdat;
  116. }
  117. public function setCreatedat(\DateTimeInterface $createdat): self
  118. {
  119. $this->createdat = $createdat;
  120. return $this;
  121. }
  122. public function getUpdatedat(): ?\DateTimeInterface
  123. {
  124. return $this->updatedat;
  125. }
  126. public function setUpdatedat(\DateTimeInterface $updatedat): self
  127. {
  128. $this->updatedat = $updatedat;
  129. return $this;
  130. }
  131. public function isIsActive(): ?bool
  132. {
  133. return $this->isActive;
  134. }
  135. }