<?php
namespace App\Entity;
use App\Repository\NotasPropiedadRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: NotasPropiedadRepository::class)]
class NotasPropiedad
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(type: Types::DATE_MUTABLE)]
private ?\DateTimeInterface $fecha = null;
#[ORM\Column(length: 250)]
private ?string $nota = null;
#[ORM\ManyToOne(inversedBy: 'notasPropiedads')]
#[ORM\JoinColumn(nullable: false)]
private ?PropertyList $property = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE)]
private ?\DateTimeInterface $fechaRegistro = null;
#[ORM\Column]
private ?bool $verNota = null;
public function __construct(){
$verNota=true;
}
public function getId(): ?int
{
return $this->id;
}
public function getFecha(): ?\DateTimeInterface
{
return $this->fecha;
}
public function setFecha(\DateTimeInterface $fecha): static
{
$this->fecha = $fecha;
return $this;
}
public function getNota(): ?string
{
return $this->nota;
}
public function setNota(string $nota): static
{
$this->nota = $nota;
return $this;
}
public function getProperty(): ?PropertyList
{
return $this->property;
}
public function setProperty(?PropertyList $property): static
{
$this->property = $property;
return $this;
}
public function getFechaRegistro(): ?\DateTimeInterface
{
return $this->fechaRegistro;
}
public function setFechaRegistro(\DateTimeInterface $fechaRegistro): static
{
$this->fechaRegistro = $fechaRegistro;
return $this;
}
public function isVerNota(): ?bool
{
return $this->verNota;
}
public function setVerNota(bool $verNota): static
{
$this->verNota = $verNota;
return $this;
}
}