src/Entity/Fielpet/View/SistemaView.php line 14

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. * SistemaView
  7. *
  8. * @ORM\Table(name="sistema_view")
  9. * @ORM\Entity
  10. * @ORM\Entity(repositoryClass="App\Repository\Fielpet\View\SistemaViewRepository")
  11. */
  12. class SistemaView
  13. {
  14. /**
  15. * @var int
  16. *
  17. * @ORM\Column(name="id", type="integer", nullable=false)
  18. * @ORM\Id
  19. * @ORM\GeneratedValue(strategy="SEQUENCE")
  20. * @ORM\SequenceGenerator(sequenceName="Sistema_id_seq", allocationSize=1, initialValue=1)
  21. */
  22. private $id;
  23. /**
  24. * @var string
  25. *
  26. * @ORM\Column(name="tipo", type="string", length=255, nullable=false)
  27. */
  28. private $tipo;
  29. /**
  30. * @var \DateTime
  31. *
  32. * @ORM\Column(name="created_at", type="custom_datetimetz", nullable=false)
  33. */
  34. private $createdAt;
  35. /**
  36. * @var \DateTime
  37. *
  38. * @ORM\Column(name="updated_at", type="custom_datetimetz", nullable=false)
  39. */
  40. private $updatedAt;
  41. public function getId(): ?int
  42. {
  43. return $this->id;
  44. }
  45. public function getTipo(): ?string
  46. {
  47. return $this->tipo;
  48. }
  49. public function setTipo(string $tipo): self
  50. {
  51. $this->tipo = $tipo;
  52. return $this;
  53. }
  54. public function getCreatedAt(): ?\DateTimeInterface
  55. {
  56. return $this->createdAt;
  57. }
  58. public function setCreatedAt(\DateTimeInterface $createdAt): self
  59. {
  60. $this->createdAt = $createdAt;
  61. return $this;
  62. }
  63. public function getUpdatedAt(): ?\DateTimeInterface
  64. {
  65. return $this->updatedAt;
  66. }
  67. public function setUpdatedAt(\DateTimeInterface $updatedAt): self
  68. {
  69. $this->updatedAt = $updatedAt;
  70. return $this;
  71. }
  72. public function __toString(){
  73. return $this->tipo;
  74. }
  75. }