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-18 13:54:18 +02:00
|
|
|
use WerkraumMedia\ThueCat\Domain\Import\EntityMapper\PropertyValues;
|
|
|
|
|
2021-08-05 15:18:39 +02:00
|
|
|
class TouristAttraction extends Place implements MapsToType
|
2021-02-01 14:14:05 +01:00
|
|
|
{
|
2023-12-04 15:19:20 +01:00
|
|
|
protected string $slogan = '';
|
2021-08-10 16:04:29 +02:00
|
|
|
|
2023-12-04 15:19:20 +01:00
|
|
|
protected string $startOfConstruction = '';
|
2021-08-10 16:18:06 +02:00
|
|
|
|
2021-08-12 13:43:20 +02:00
|
|
|
/**
|
|
|
|
* @var string[]
|
|
|
|
*/
|
2023-12-04 15:19:20 +01:00
|
|
|
protected array $museumServices = [];
|
2021-08-12 13:43:20 +02:00
|
|
|
|
2021-08-12 14:05:45 +02:00
|
|
|
/**
|
|
|
|
* @var string[]
|
|
|
|
*/
|
2023-12-04 15:19:20 +01:00
|
|
|
protected array $architecturalStyles = [];
|
2021-08-12 14:05:45 +02:00
|
|
|
|
2021-08-16 08:25:54 +02:00
|
|
|
/**
|
|
|
|
* @var string[]
|
|
|
|
*/
|
2023-12-04 15:19:20 +01:00
|
|
|
protected array $digitalOffers = [];
|
2021-08-16 08:25:54 +02:00
|
|
|
|
2021-08-16 08:37:15 +02:00
|
|
|
/**
|
|
|
|
* @var string[]
|
|
|
|
*/
|
2023-12-04 15:19:20 +01:00
|
|
|
protected array $photographies = [];
|
2021-08-16 08:37:15 +02:00
|
|
|
|
2023-12-04 15:19:20 +01:00
|
|
|
protected string $petsAllowed = '';
|
2021-08-16 09:35:47 +02:00
|
|
|
|
2023-12-04 15:19:20 +01:00
|
|
|
protected string $isAccessibleForFree = '';
|
2021-08-17 11:50:11 +02:00
|
|
|
|
2023-12-04 15:19:20 +01:00
|
|
|
protected string $publicAccess = '';
|
2021-08-17 14:01:48 +02:00
|
|
|
|
2021-08-17 14:36:26 +02:00
|
|
|
/**
|
|
|
|
* @var string[]
|
|
|
|
*/
|
2023-12-04 15:19:20 +01:00
|
|
|
protected array $availableLanguages = [];
|
2021-08-17 14:36:26 +02:00
|
|
|
|
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-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: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-17 14:36:26 +02:00
|
|
|
/**
|
|
|
|
* @return string[]
|
|
|
|
*/
|
|
|
|
public function getAvailableLanguages(): array
|
|
|
|
{
|
|
|
|
return $this->availableLanguages;
|
|
|
|
}
|
|
|
|
|
2021-08-10 16:04:29 +02:00
|
|
|
/**
|
|
|
|
* @internal for mapping via Symfony component.
|
|
|
|
*/
|
|
|
|
public function setSlogan(string $slogan): void
|
|
|
|
{
|
2021-08-18 13:54:18 +02:00
|
|
|
$this->slogan = PropertyValues::removePrefixFromEntry($slogan);
|
2021-08-10 16:04:29 +02:00
|
|
|
}
|
|
|
|
|
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-12 13:43:20 +02:00
|
|
|
/**
|
|
|
|
* @internal for mapping via Symfony component.
|
2023-11-30 13:52:23 +01:00
|
|
|
*
|
2021-08-12 13:43:20 +02:00
|
|
|
* @param string|array $museumService
|
|
|
|
*/
|
|
|
|
public function setMuseumService($museumService): void
|
|
|
|
{
|
|
|
|
if (is_string($museumService)) {
|
|
|
|
$museumService = [$museumService];
|
|
|
|
}
|
|
|
|
|
2021-08-18 13:54:18 +02:00
|
|
|
$this->museumServices = PropertyValues::removePrefixFromEntries($museumService);
|
2021-08-12 13:43:20 +02:00
|
|
|
}
|
|
|
|
|
2021-08-12 14:05:45 +02:00
|
|
|
/**
|
|
|
|
* @internal for mapping via Symfony component.
|
2023-11-30 13:52:23 +01:00
|
|
|
*
|
2021-08-12 14:05:45 +02:00
|
|
|
* @param string|array $architecturalStyle
|
|
|
|
*/
|
|
|
|
public function setArchitecturalStyle($architecturalStyle): void
|
|
|
|
{
|
|
|
|
if (is_string($architecturalStyle)) {
|
|
|
|
$architecturalStyle = [$architecturalStyle];
|
|
|
|
}
|
|
|
|
|
2021-08-18 13:54:18 +02:00
|
|
|
$this->architecturalStyles = PropertyValues::removePrefixFromEntries($architecturalStyle);
|
2021-08-16 08:15:38 +02:00
|
|
|
}
|
|
|
|
|
2021-08-16 08:25:54 +02:00
|
|
|
/**
|
|
|
|
* @internal for mapping via Symfony component.
|
2023-11-30 13:52:23 +01:00
|
|
|
*
|
2021-08-16 08:25:54 +02:00
|
|
|
* @param string|array $digitalOffer
|
|
|
|
*/
|
|
|
|
public function setDigitalOffer($digitalOffer): void
|
|
|
|
{
|
|
|
|
if (is_string($digitalOffer)) {
|
|
|
|
$digitalOffer = [$digitalOffer];
|
|
|
|
}
|
|
|
|
|
2021-08-18 13:54:18 +02:00
|
|
|
$this->digitalOffers = PropertyValues::removePrefixFromEntries($digitalOffer);
|
2021-08-16 08:25:54 +02:00
|
|
|
}
|
|
|
|
|
2021-08-16 08:37:15 +02:00
|
|
|
/**
|
|
|
|
* @internal for mapping via Symfony component.
|
2023-11-30 13:52:23 +01:00
|
|
|
*
|
2021-08-16 08:37:15 +02:00
|
|
|
* @param string|array $photography
|
|
|
|
*/
|
|
|
|
public function setPhotography($photography): void
|
|
|
|
{
|
|
|
|
if (is_string($photography)) {
|
|
|
|
$photography = [$photography];
|
|
|
|
}
|
|
|
|
|
2021-08-18 13:54:18 +02:00
|
|
|
$this->photographies = PropertyValues::removePrefixFromEntries($photography);
|
2021-08-16 08:37:15 +02:00
|
|
|
}
|
|
|
|
|
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-17 14:36:26 +02:00
|
|
|
/**
|
|
|
|
* @internal for mapping via Symfony component.
|
2023-11-30 13:52:23 +01:00
|
|
|
*
|
2021-08-17 14:36:26 +02:00
|
|
|
* @param string|array $availableLanguage
|
|
|
|
*/
|
|
|
|
public function setAvailableLanguage($availableLanguage): void
|
|
|
|
{
|
|
|
|
if (is_string($availableLanguage)) {
|
|
|
|
$availableLanguage = [$availableLanguage];
|
|
|
|
}
|
|
|
|
|
2021-08-18 13:54:18 +02:00
|
|
|
$this->availableLanguages = PropertyValues::removePrefixFromEntries($availableLanguage);
|
2021-08-17 15:51:38 +02:00
|
|
|
}
|
|
|
|
|
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
|
|
|
}
|
|
|
|
}
|