src/Entity/RentalHistory.php line 10
<?phpnamespace App\Entity;use App\Repository\RentalHistoryRepository;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: RentalHistoryRepository::class)]class RentalHistory{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\ManyToOne(inversedBy: 'rentalHistories')]private ?Building $building = null;#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]private ?\DateTimeInterface $dateStartLease = null;#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]private ?\DateTimeInterface $dateEndLease = null;#[ORM\Column()]private bool $rentalSign = false;#[ORM\Column(nullable: true)]private ?int $rent = null;#[ORM\ManyToOne(inversedBy: 'rentalHistories')]private ?User $tenant = null;public function getId(): ?int{return $this->id;}public function getBuilding(): ?Building{return $this->building;}public function setBuilding(?Building $building): self{$this->building = $building;return $this;}public function getDateStartLease(): ?\DateTimeInterface{return $this->dateStartLease;}public function setDateStartLease(?\DateTimeInterface $dateStartLease): self{$this->dateStartLease = $dateStartLease;return $this;}public function getDateEndLease(): ?\DateTimeInterface{return $this->dateEndLease;}public function setDateEndLease(?\DateTimeInterface $dateEndLease): self{$this->dateEndLease = $dateEndLease;return $this;}public function getRent(): ?int{return $this->rent;}public function setRent(?int $rent): self{$this->rent = $rent;return $this;}public function getRentalSign(): bool{return $this->rentalSign;}public function setRentalSign(bool $isSign): self{$this->rentalSign = $isSign;return $this;}public function getTenant(): ?User{return $this->tenant;}public function setTenant(?User $tenant): self{$this->tenant = $tenant;return $this;}}