2021-02-01 14:14:05 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Copyright (C) 2021 Daniel Siepmann <coding@daniel-siepmann.de>
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
|
|
|
* 02110-1301, USA.
|
|
|
|
*/
|
|
|
|
|
2021-08-05 15:18:39 +02:00
|
|
|
namespace WerkraumMedia\ThueCat\Domain\Import\Entity;
|
2021-08-10 09:38:59 +02:00
|
|
|
|
2021-08-05 15:18:39 +02:00
|
|
|
class TouristAttraction extends Place implements MapsToType
|
2021-02-01 14:14:05 +01:00
|
|
|
{
|
2021-08-10 16:04:29 +02:00
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
protected $slogan = '';
|
|
|
|
|
2021-08-10 16:18:06 +02:00
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
protected $startOfConstruction = '';
|
|
|
|
|
2021-08-10 16:42:23 +02:00
|
|
|
/**
|
|
|
|
* @var string[]
|
|
|
|
*/
|
|
|
|
protected $sanitations = [];
|
|
|
|
|
2021-08-12 13:28:10 +02:00
|
|
|
/**
|
|
|
|
* @var string[]
|
|
|
|
*/
|
|
|
|
protected $otherServices = [];
|
|
|
|
|
2021-08-12 13:43:20 +02:00
|
|
|
/**
|
|
|
|
* @var string[]
|
|
|
|
*/
|
|
|
|
protected $museumServices = [];
|
|
|
|
|
2021-08-12 14:05:45 +02:00
|
|
|
/**
|
|
|
|
* @var string[]
|
|
|
|
*/
|
|
|
|
protected $architecturalStyles = [];
|
|
|
|
|
2021-08-16 08:02:43 +02:00
|
|
|
/**
|
|
|
|
* @var string[]
|
|
|
|
*/
|
|
|
|
protected $trafficInfrastructures = [];
|
|
|
|
|
2021-08-16 08:15:38 +02:00
|
|
|
/**
|
|
|
|
* @var string[]
|
|
|
|
*/
|
|
|
|
protected $paymentsAccepted = [];
|
|
|
|
|
2021-08-16 08:25:54 +02:00
|
|
|
/**
|
|
|
|
* @var string[]
|
|
|
|
*/
|
|
|
|
protected $digitalOffers = [];
|
|
|
|
|
2021-08-16 08:37:15 +02:00
|
|
|
/**
|
|
|
|
* @var string[]
|
|
|
|
*/
|
|
|
|
protected $photographies = [];
|
|
|
|
|
2021-08-16 09:35:47 +02:00
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
protected $petsAllowed = '';
|
|
|
|
|
2021-08-17 11:50:11 +02:00
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
protected $isAccessibleForFree = '';
|
|
|
|
|
2021-08-17 14:01:48 +02:00
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
protected $publicAccess = '';
|
|
|
|
|
2021-08-10 16:04:29 +02:00
|
|
|
public function getSlogan(): string
|
|
|
|
{
|
|
|
|
return $this->slogan;
|
|
|
|
}
|
|
|
|
|
2021-08-10 16:18:06 +02:00
|
|
|
public function getStartOfConstruction(): string
|
|
|
|
{
|
|
|
|
return $this->startOfConstruction;
|
|
|
|
}
|
|
|
|
|
2021-08-10 16:42:23 +02:00
|
|
|
/**
|
|
|
|
* @return string[]
|
|
|
|
*/
|
|
|
|
public function getSanitations(): array
|
|
|
|
{
|
|
|
|
return $this->sanitations;
|
|
|
|
}
|
|
|
|
|
2021-08-12 13:28:10 +02:00
|
|
|
/**
|
|
|
|
* @return string[]
|
|
|
|
*/
|
|
|
|
public function getOtherServices(): array
|
|
|
|
{
|
|
|
|
return $this->otherServices;
|
|
|
|
}
|
|
|
|
|
2021-08-12 13:43:20 +02:00
|
|
|
/**
|
|
|
|
* @return string[]
|
|
|
|
*/
|
|
|
|
public function getMuseumServices(): array
|
|
|
|
{
|
|
|
|
return $this->museumServices;
|
|
|
|
}
|
|
|
|
|
2021-08-12 14:05:45 +02:00
|
|
|
/**
|
|
|
|
* @return string[]
|
|
|
|
*/
|
|
|
|
public function getArchitecturalStyles(): array
|
|
|
|
{
|
|
|
|
return $this->architecturalStyles;
|
|
|
|
}
|
|
|
|
|
2021-08-16 08:02:43 +02:00
|
|
|
/**
|
|
|
|
* @return string[]
|
|
|
|
*/
|
|
|
|
public function getTrafficInfrastructures(): array
|
|
|
|
{
|
|
|
|
return $this->trafficInfrastructures;
|
|
|
|
}
|
|
|
|
|
2021-08-16 08:15:38 +02:00
|
|
|
/**
|
|
|
|
* @return string[]
|
|
|
|
*/
|
|
|
|
public function getPaymentsAccepted(): array
|
|
|
|
{
|
|
|
|
return $this->paymentsAccepted;
|
|
|
|
}
|
|
|
|
|
2021-08-16 08:25:54 +02:00
|
|
|
/**
|
|
|
|
* @return string[]
|
|
|
|
*/
|
|
|
|
public function getDigitalOffers(): array
|
|
|
|
{
|
|
|
|
return $this->digitalOffers;
|
|
|
|
}
|
|
|
|
|
2021-08-16 08:37:15 +02:00
|
|
|
/**
|
|
|
|
* @return string[]
|
|
|
|
*/
|
|
|
|
public function getPhotographies(): array
|
|
|
|
{
|
|
|
|
return $this->photographies;
|
|
|
|
}
|
|
|
|
|
2021-08-16 09:35:47 +02:00
|
|
|
public function getPetsAllowed(): string
|
|
|
|
{
|
|
|
|
return $this->petsAllowed;
|
|
|
|
}
|
|
|
|
|
2021-08-17 11:50:11 +02:00
|
|
|
public function getIsAccessibleForFree(): string
|
|
|
|
{
|
|
|
|
return $this->isAccessibleForFree;
|
|
|
|
}
|
|
|
|
|
2021-08-17 14:01:48 +02:00
|
|
|
public function getPublicAccess(): string
|
|
|
|
{
|
|
|
|
return $this->publicAccess;
|
|
|
|
}
|
|
|
|
|
2021-08-10 16:04:29 +02:00
|
|
|
/**
|
|
|
|
* @internal for mapping via Symfony component.
|
|
|
|
*/
|
|
|
|
public function setSlogan(string $slogan): void
|
|
|
|
{
|
|
|
|
$this->slogan = str_replace('thuecat:', '', $slogan);
|
|
|
|
}
|
|
|
|
|
2021-08-10 16:18:06 +02:00
|
|
|
/**
|
|
|
|
* @internal for mapping via Symfony component.
|
|
|
|
*/
|
|
|
|
public function setStartOfConstruction(string $startOfConstruction): void
|
|
|
|
{
|
|
|
|
$this->startOfConstruction = $startOfConstruction;
|
|
|
|
}
|
|
|
|
|
2021-08-10 16:42:23 +02:00
|
|
|
/**
|
|
|
|
* @internal for mapping via Symfony component.
|
|
|
|
* @param string|array $sanitation
|
|
|
|
*/
|
|
|
|
public function setSanitation($sanitation): void
|
|
|
|
{
|
|
|
|
if (is_string($sanitation)) {
|
|
|
|
$sanitation = [$sanitation];
|
|
|
|
}
|
|
|
|
|
|
|
|
$this->sanitations = array_map(function (string $sanitation) {
|
|
|
|
return str_replace('thuecat:', '', $sanitation);
|
|
|
|
}, $sanitation);
|
|
|
|
}
|
|
|
|
|
2021-08-12 13:28:10 +02:00
|
|
|
/**
|
|
|
|
* @internal for mapping via Symfony component.
|
|
|
|
* @param string|array $otherService
|
|
|
|
*/
|
|
|
|
public function setOtherService($otherService): void
|
|
|
|
{
|
|
|
|
if (is_string($otherService)) {
|
|
|
|
$otherService = [$otherService];
|
|
|
|
}
|
|
|
|
|
|
|
|
$this->otherServices = array_map(function (string $otherService) {
|
|
|
|
return str_replace('thuecat:', '', $otherService);
|
|
|
|
}, $otherService);
|
|
|
|
}
|
|
|
|
|
2021-08-12 13:43:20 +02:00
|
|
|
/**
|
|
|
|
* @internal for mapping via Symfony component.
|
|
|
|
* @param string|array $museumService
|
|
|
|
*/
|
|
|
|
public function setMuseumService($museumService): void
|
|
|
|
{
|
|
|
|
if (is_string($museumService)) {
|
|
|
|
$museumService = [$museumService];
|
|
|
|
}
|
|
|
|
|
|
|
|
$this->museumServices = array_map(function (string $museumService) {
|
|
|
|
return str_replace('thuecat:', '', $museumService);
|
|
|
|
}, $museumService);
|
|
|
|
}
|
|
|
|
|
2021-08-12 14:05:45 +02:00
|
|
|
/**
|
|
|
|
* @internal for mapping via Symfony component.
|
|
|
|
* @param string|array $architecturalStyle
|
|
|
|
*/
|
|
|
|
public function setArchitecturalStyle($architecturalStyle): void
|
|
|
|
{
|
|
|
|
if (is_string($architecturalStyle)) {
|
|
|
|
$architecturalStyle = [$architecturalStyle];
|
|
|
|
}
|
|
|
|
|
|
|
|
$this->architecturalStyles = array_map(function (string $architecturalStyle) {
|
|
|
|
return str_replace('thuecat:', '', $architecturalStyle);
|
|
|
|
}, $architecturalStyle);
|
|
|
|
}
|
|
|
|
|
2021-08-16 08:02:43 +02:00
|
|
|
/**
|
|
|
|
* @internal for mapping via Symfony component.
|
|
|
|
* @param string|array $trafficInfrastructure
|
|
|
|
*/
|
|
|
|
public function setTrafficInfrastructure($trafficInfrastructure): void
|
|
|
|
{
|
|
|
|
if (is_string($trafficInfrastructure)) {
|
|
|
|
$trafficInfrastructure = [$trafficInfrastructure];
|
|
|
|
}
|
|
|
|
|
|
|
|
$this->trafficInfrastructures = array_map(function (string $trafficInfrastructure) {
|
|
|
|
return str_replace('thuecat:', '', $trafficInfrastructure);
|
|
|
|
}, $trafficInfrastructure);
|
|
|
|
}
|
|
|
|
|
2021-08-16 08:15:38 +02:00
|
|
|
/**
|
|
|
|
* @internal for mapping via Symfony component.
|
|
|
|
* @param string|array $paymentAccepted
|
|
|
|
*/
|
|
|
|
public function setPaymentAccepted($paymentAccepted): void
|
|
|
|
{
|
|
|
|
if (is_string($paymentAccepted)) {
|
|
|
|
$paymentAccepted = [$paymentAccepted];
|
|
|
|
}
|
|
|
|
|
|
|
|
$this->paymentsAccepted = array_map(function (string $paymentAccepted) {
|
|
|
|
return str_replace('thuecat:', '', $paymentAccepted);
|
|
|
|
}, $paymentAccepted);
|
|
|
|
}
|
|
|
|
|
2021-08-16 08:25:54 +02:00
|
|
|
/**
|
|
|
|
* @internal for mapping via Symfony component.
|
|
|
|
* @param string|array $digitalOffer
|
|
|
|
*/
|
|
|
|
public function setDigitalOffer($digitalOffer): void
|
|
|
|
{
|
|
|
|
if (is_string($digitalOffer)) {
|
|
|
|
$digitalOffer = [$digitalOffer];
|
|
|
|
}
|
|
|
|
|
|
|
|
$this->digitalOffers = array_map(function (string $digitalOffer) {
|
|
|
|
return str_replace('thuecat:', '', $digitalOffer);
|
|
|
|
}, $digitalOffer);
|
|
|
|
}
|
|
|
|
|
2021-08-16 08:37:15 +02:00
|
|
|
/**
|
|
|
|
* @internal for mapping via Symfony component.
|
|
|
|
* @param string|array $photography
|
|
|
|
*/
|
|
|
|
public function setPhotography($photography): void
|
|
|
|
{
|
|
|
|
if (is_string($photography)) {
|
|
|
|
$photography = [$photography];
|
|
|
|
}
|
|
|
|
|
|
|
|
$this->photographies = array_map(function (string $photography) {
|
|
|
|
return str_replace('thuecat:', '', $photography);
|
|
|
|
}, $photography);
|
|
|
|
}
|
|
|
|
|
2021-08-16 09:35:47 +02:00
|
|
|
/**
|
|
|
|
* @internal for mapping via Symfony component.
|
|
|
|
*/
|
|
|
|
public function setPetsAllowed(string $petsAllowed): void
|
|
|
|
{
|
|
|
|
$this->petsAllowed = $petsAllowed;
|
|
|
|
}
|
|
|
|
|
2021-08-17 11:50:11 +02:00
|
|
|
/**
|
|
|
|
* @internal for mapping via Symfony component.
|
|
|
|
*/
|
|
|
|
public function setIsAccessibleForFree(string $isAccessibleForFree): void
|
|
|
|
{
|
|
|
|
$this->isAccessibleForFree = $isAccessibleForFree;
|
|
|
|
}
|
|
|
|
|
2021-08-17 14:01:48 +02:00
|
|
|
/**
|
|
|
|
* @internal for mapping via Symfony component.
|
|
|
|
*/
|
|
|
|
public function setPublicAccess(string $publicAccess): void
|
|
|
|
{
|
|
|
|
$this->publicAccess = $publicAccess;
|
|
|
|
}
|
|
|
|
|
2021-08-05 15:18:39 +02:00
|
|
|
public static function getSupportedTypes(): array
|
2021-02-01 14:14:05 +01:00
|
|
|
{
|
2021-08-05 15:18:39 +02:00
|
|
|
return [
|
|
|
|
'schema:TouristAttraction',
|
|
|
|
];
|
2021-02-01 14:14:05 +01:00
|
|
|
}
|
|
|
|
}
|