<?php
namespace App\Entity;
use App\Entity\RemesasRecibos;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
use App\Repository\RecibosTenantsRepository;
#[ORM\Entity(repositoryClass: RecibosTenantsRepository::class)]
class RecibosTenants
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(type: Types::DATE_MUTABLE)]
private ?\DateTimeInterface $fechainicio = null;
#[ORM\Column(type: Types::DATE_MUTABLE)]
private ?\DateTimeInterface $fechafinal = null;
#[ORM\ManyToOne(inversedBy: 'recibosTenants')]
#[ORM\JoinColumn(nullable: false)]
private ?Tenants $tenant = null;
#[ORM\ManyToOne(inversedBy: 'recibosTenants')]
#[ORM\JoinColumn(nullable: false)]
private ?PropertyList $property = null;
#[ORM\Column(length: 255)]
private ?string $descripcion = null;
#[ORM\Column]
private ?float $importe = null;
#[ORM\Column]
private ?bool $pagado = null;
#[ORM\ManyToOne(inversedBy: 'recibosTenants')]
#[ORM\JoinColumn(nullable: true)]
private ?RemesasRecibos $remesa = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE)]
private ?\DateTimeInterface $fecharegistro = null;
public function llenarDatosRecibo(\DateTimeInterface $fechainicio, \DateTimeInterface $fechafinal, Tenants $tenant,
PropertyList $property, string $descripcion, float $importe, bool $pagado, \DateTimeInterface $fecharegistro,
?RemesasRecibos $remesa = null){
$this->fechainicio=$fechainicio;
$this->fechafinal=$fechafinal;
$this->tenant=$tenant;
$this->property=$property;
$this->descripcion=$descripcion;
$this->importe=$importe;
$this->pagado=$pagado;
$this->fecharegistro=$fecharegistro;
$this->remesa=$remesa;
}
public function __toString(): string{
return " ";
}
public function getId(): ?int
{
return $this->id;
}
public function getFechainicio(): ?\DateTimeInterface
{
return $this->fechainicio;
}
public function setFechainicio(\DateTimeInterface $fechainicio): static
{
$this->fechainicio = $fechainicio;
return $this;
}
public function getFechafinal(): ?\DateTimeInterface
{
return $this->fechafinal;
}
public function setFechafinal(\DateTimeInterface $fechafinal): static
{
$this->fechafinal = $fechafinal;
return $this;
}
public function getTenant(): ?Tenants
{
return $this->tenant;
}
public function setTenant(?Tenants $tenant): static
{
$this->tenant = $tenant;
return $this;
}
public function getProperty(): ?PropertyList
{
return $this->property;
}
public function setProperty(?PropertyList $property): static
{
$this->property = $property;
return $this;
}
public function getDescripcion(): ?string
{
return $this->descripcion;
}
public function setDescripcion(string $descripcion): static
{
$this->descripcion = $descripcion;
return $this;
}
public function getImporte(): ?float
{
return $this->importe;
}
public function setImporte(float $importe): static
{
$this->importe = $importe;
return $this;
}
public function isPagado(): ?bool
{
return $this->pagado;
}
public function setPagado(bool $pagado): static
{
$this->pagado = $pagado;
return $this;
}
public function getRemesa(): ?RemesasRecibos
{
return $this->remesa;
}
public function setRemesa(?RemesasRecibos $remesa): static
{
$this->remesa = $remesa;
return $this;
}
public function getFecharegistro(): ?\DateTimeInterface
{
return $this->fecharegistro;
}
public function setFecharegistro(\DateTimeInterface $fecharegistro): static
{
$this->fecharegistro = $fecharegistro;
return $this;
}
}