<?php
namespace App\Entity;
use App\Repository\InterestsRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: InterestsRepository::class)]
class Interests
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(nullable: true)]
private ?int $min_price = null;
#[ORM\Column(nullable: true)]
private ?int $max_price = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $city = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $barrio = null;
#[ORM\Column(nullable: true)]
private ?int $min_surface = null;
#[ORM\Column(nullable: true)]
private ?int $max_surface = null;
#[ORM\Column(nullable: true)]
private ?int $min_beds = null;
#[ORM\Column(nullable: true)]
private ?int $max_beds = null;
#[ORM\Column(nullable: true)]
private ?int $min_baths = null;
#[ORM\Column(nullable: true)]
private ?int $max_baths = null;
#[ORM\Column(type: Types::ARRAY, nullable: true)]
private ?array $subtype = [];
//#[ORM\OneToOne(inversedBy: 'interests', cascade: ['persist', 'remove'])]
//private ?PotentialClients $potentialClient = null;
#[ORM\Column(nullable: true)]
private ?bool $buy = null;
#[ORM\Column(nullable: true)]
private ?bool $rent = null;
#[ORM\Column(nullable: true)]
private ?bool $invest = null;
#[ORM\Column(type: Types::ARRAY, nullable: true)]
private array $propertyType = [];
/*
public function __toString(): string
{
return $this->getPotentialClient->getPotentialName().' '.$this->getPotentialClient->getPotentialSurname();
}
*/
public function getId(): ?int
{
return $this->id;
}
public function getMinPrice(): ?int
{
return $this->min_price;
}
public function setMinPrice(?int $min_price): static
{
$this->min_price = $min_price;
return $this;
}
public function getMaxPrice(): ?int
{
return $this->max_price;
}
public function setMaxPrice(?int $max_price): static
{
$this->max_price = $max_price;
return $this;
}
public function getCity(): ?string
{
return $this->city;
}
public function setCity(?string $city): static
{
$this->city = $city;
return $this;
}
public function getBarrio(): ?string
{
return $this->barrio;
}
public function setBarrio(?string $barrio): static
{
$this->barrio = $barrio;
return $this;
}
public function getMinSurface(): ?int
{
return $this->min_surface;
}
public function setMinSurface(?int $min_surface): static
{
$this->min_surface = $min_surface;
return $this;
}
public function getMaxSurface(): ?int
{
return $this->max_surface;
}
public function setMaxSurface(?int $max_surface): static
{
$this->max_surface = $max_surface;
return $this;
}
public function getMinBeds(): ?int
{
return $this->min_beds;
}
public function setMinBeds(?int $min_beds): static
{
$this->min_beds = $min_beds;
return $this;
}
public function getMaxBeds(): ?int
{
return $this->max_beds;
}
public function setMaxBeds(?int $max_beds): static
{
$this->max_beds = $max_beds;
return $this;
}
public function getMinBaths(): ?int
{
return $this->min_baths;
}
public function setMinBaths(?int $min_baths): static
{
$this->min_baths = $min_baths;
return $this;
}
public function getMaxBaths(): ?int
{
return $this->max_baths;
}
public function setMaxBaths(?int $max_baths): static
{
$this->max_baths = $max_baths;
return $this;
}
public function getSubtype(): ?array
{
return $this->subtype;
}
public function setSubtype(?array $subtype): static
{
$this->subtype = $subtype;
return $this;
}
/*
public function getPotentialClient(): ?PotentialClients
{
return $this->potentialClient;
}
public function setPotentialClient(?PotentialClients $potentialClient): static
{
$this->potentialClient = $potentialClient;
return $this;
}
*/
public function isBuy(): ?bool
{
return $this->buy;
}
public function setBuy(?bool $buy): static
{
$this->buy = $buy;
return $this;
}
public function isRent(): ?bool
{
return $this->rent;
}
public function setRent(?bool $rent): static
{
$this->rent = $rent;
return $this;
}
public function isInvest(): ?bool
{
return $this->invest;
}
public function setInvest(?bool $invest): static
{
$this->invest = $invest;
return $this;
}
public function getPropertyType(): array
{
return $this->propertyType;
}
public function setPropertyType(?array $propertyType): static
{
$this->propertyType = $propertyType;
return $this;
}
}