mirror of
https://forge.chapril.org/tykayn/osm-commerces
synced 2025-06-20 01:44:42 +02:00
compute stats for completion by zone, have base tags, split categories
This commit is contained in:
parent
f15fec6d18
commit
f69b7824af
16 changed files with 1257 additions and 118 deletions
|
@ -61,6 +61,21 @@ class Place
|
|||
#[ORM\Column(length: 255, nullable: true)]
|
||||
private ?string $name = null;
|
||||
|
||||
#[ORM\Column(nullable: true)]
|
||||
private ?bool $has_opening_hours = null;
|
||||
|
||||
#[ORM\Column(nullable: true)]
|
||||
private ?bool $has_address = null;
|
||||
|
||||
#[ORM\Column(nullable: true)]
|
||||
private ?bool $has_website = null;
|
||||
|
||||
#[ORM\Column(nullable: true)]
|
||||
private ?bool $has_wheelchair = null;
|
||||
|
||||
#[ORM\Column(nullable: true)]
|
||||
private ?bool $has_note = null;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->histories = new ArrayCollection();
|
||||
|
@ -256,4 +271,77 @@ class Place
|
|||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function hasOpeningHours(): ?bool
|
||||
{
|
||||
return $this->has_opening_hours;
|
||||
}
|
||||
|
||||
public function setHasOpeningHours(?bool $has_opening_hours): static
|
||||
{
|
||||
$this->has_opening_hours = $has_opening_hours;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function hasAddress(): ?bool
|
||||
{
|
||||
return $this->has_address;
|
||||
}
|
||||
|
||||
public function setHasAddress(?bool $has_address): static
|
||||
{
|
||||
$this->has_address = $has_address;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function hasWebsite(): ?bool
|
||||
{
|
||||
return $this->has_website;
|
||||
}
|
||||
|
||||
public function setHasWebsite(?bool $has_website): static
|
||||
{
|
||||
$this->has_website = $has_website;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function hasWheelchair(): ?bool
|
||||
{
|
||||
return $this->has_wheelchair;
|
||||
}
|
||||
|
||||
public function setHasWheelchair(?bool $has_wheelchair): static
|
||||
{
|
||||
$this->has_wheelchair = $has_wheelchair;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function hasNote(): ?bool
|
||||
{
|
||||
return $this->has_note;
|
||||
}
|
||||
|
||||
public function setHasNote(?bool $has_note): static
|
||||
{
|
||||
$this->has_note = $has_note;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
public function getPlaceCount(): ?int
|
||||
{
|
||||
return $this->place_count;
|
||||
}
|
||||
|
||||
public function setPlaceCount(int $place_count): static
|
||||
{
|
||||
$this->place_count = $place_count;
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue