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

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Fielpet\View;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * CompaniasView
  6. *
  7. * @ORM\Table(name="companias_view")
  8. * @ORM\Entity
  9. */
  10. class CompaniasView
  11. {
  12. const DAWER = 1;
  13. const BBVA = 2;
  14. /**
  15. * @var int
  16. * @ORM\Column(name="id", type="integer", nullable=false)
  17. * @ORM\Id
  18. * @ORM\GeneratedValue(strategy="SEQUENCE")
  19. * @ORM\SequenceGenerator(sequenceName="Companias_id_seq", allocationSize=1, initialValue=1)
  20. */
  21. private $id;
  22. /**
  23. * @var string|null
  24. * @ORM\Column(name="nombre", type="string", length=255, nullable=true)
  25. */
  26. private $nombre;
  27. /**
  28. * @var \DateTime
  29. * @ORM\Column(name="created_at", type="custom_datetimetz", nullable=false)
  30. */
  31. private $createdAt;
  32. /**
  33. * @var \DateTime
  34. * @ORM\Column(name="updated_at", type="custom_datetimetz", nullable=false)
  35. */
  36. private $updatedAt;
  37. public function getId(): ?int { return $this->id; }
  38. public function getNombre(): ?string { return $this->nombre; }
  39. public function setNombre(?string $nombre): self { $this->nombre = $nombre; return $this; }
  40. public function getCreatedAt(): ?\DateTimeInterface { return $this->createdAt; }
  41. public function setCreatedAt(\DateTimeInterface $createdAt): self { $this->createdAt = $createdAt; return $this; }
  42. public function getUpdatedAt(): ?\DateTimeInterface { return $this->updatedAt; }
  43. public function setUpdatedAt(\DateTimeInterface $updatedAt): self { $this->updatedAt = $updatedAt; return $this; }
  44. }