2021-02-03 17:20:01 +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-10 09:38:59 +02:00
|
|
|
namespace WerkraumMedia\ThueCat\Domain\Model\Frontend;
|
|
|
|
|
2021-08-10 16:42:23 +02:00
|
|
|
use TYPO3\CMS\Core\Utility\GeneralUtility;
|
2021-02-03 17:20:01 +01:00
|
|
|
|
2021-08-18 13:54:18 +02:00
|
|
|
class TouristAttraction extends Place
|
2021-02-03 17:20:01 +01:00
|
|
|
{
|
2023-12-05 09:43:55 +01:00
|
|
|
protected string $slogan = '';
|
2021-08-10 16:04:29 +02:00
|
|
|
|
2023-12-05 09:43:55 +01:00
|
|
|
protected ?Offers $offers = null;
|
2021-04-13 14:43:04 +02:00
|
|
|
|
2023-12-05 09:43:55 +01:00
|
|
|
protected ?Town $town = null;
|
2021-04-13 14:43:04 +02:00
|
|
|
|
2023-12-05 09:43:55 +01:00
|
|
|
protected string $startOfConstruction = '';
|
2021-08-10 16:18:06 +02:00
|
|
|
|
2023-12-05 09:43:55 +01:00
|
|
|
protected string $museumService = '';
|
2021-08-12 13:43:20 +02:00
|
|
|
|
2023-12-05 09:43:55 +01:00
|
|
|
protected string $architecturalStyle = '';
|
2021-08-12 14:05:45 +02:00
|
|
|
|
2021-08-16 08:25:54 +02:00
|
|
|
/**
|
2023-12-05 09:43:55 +01:00
|
|
|
* Necessary for Extbase/Symfony.
|
|
|
|
*
|
2021-08-16 08:25:54 +02:00
|
|
|
* @var string
|
|
|
|
*/
|
2023-12-05 09:43:55 +01:00
|
|
|
protected string $digitalOffer = '';
|
2021-08-16 08:25:54 +02:00
|
|
|
|
2021-08-16 08:37:15 +02:00
|
|
|
/**
|
2023-12-05 09:43:55 +01:00
|
|
|
* Necessary for Extbase/Symfony.
|
|
|
|
*
|
2021-08-16 08:37:15 +02:00
|
|
|
* @var string
|
|
|
|
*/
|
2023-12-05 09:43:55 +01:00
|
|
|
protected string $photography = '';
|
2021-08-16 08:37:15 +02:00
|
|
|
|
2023-12-05 09:43:55 +01:00
|
|
|
protected string $petsAllowed = '';
|
2021-08-16 09:35:47 +02:00
|
|
|
|
2023-12-05 09:43:55 +01:00
|
|
|
protected string $isAccessibleForFree = '';
|
2021-08-17 11:50:11 +02:00
|
|
|
|
2023-12-05 09:43:55 +01:00
|
|
|
protected string $publicAccess = '';
|
2021-08-17 14:01:48 +02:00
|
|
|
|
2021-08-10 16:04:29 +02:00
|
|
|
public function getSlogan(): string
|
|
|
|
{
|
2024-01-24 11:54:48 +01:00
|
|
|
return explode(',', $this->slogan)[0] ?? '';
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return string[]
|
|
|
|
*/
|
|
|
|
public function getSlogans(): array
|
|
|
|
{
|
|
|
|
return explode(',', $this->slogan);
|
2021-08-10 16:04:29 +02:00
|
|
|
}
|
|
|
|
|
2021-02-18 14:54:00 +01:00
|
|
|
public function getOffers(): ?Offers
|
|
|
|
{
|
|
|
|
return $this->offers;
|
|
|
|
}
|
|
|
|
|
2021-02-03 17:20:01 +01:00
|
|
|
public function getTown(): ?Town
|
|
|
|
{
|
|
|
|
return $this->town;
|
|
|
|
}
|
2021-02-16 15:08:15 +01:00
|
|
|
|
2021-08-10 16:18:06 +02:00
|
|
|
public function getStartOfConstruction(): string
|
|
|
|
{
|
|
|
|
return $this->startOfConstruction;
|
|
|
|
}
|
2021-08-10 16:42:23 +02:00
|
|
|
|
2021-08-12 13:43:20 +02:00
|
|
|
public function getMuseumServices(): array
|
|
|
|
{
|
|
|
|
return GeneralUtility::trimExplode(',', $this->museumService, true);
|
|
|
|
}
|
2021-08-12 14:05:45 +02:00
|
|
|
|
|
|
|
public function getArchitecturalStyles(): array
|
|
|
|
{
|
|
|
|
return GeneralUtility::trimExplode(',', $this->architecturalStyle, true);
|
|
|
|
}
|
2021-08-16 08:02:43 +02:00
|
|
|
|
2021-08-16 08:25:54 +02:00
|
|
|
public function getDigitalOffer(): array
|
|
|
|
{
|
|
|
|
return GeneralUtility::trimExplode(',', $this->digitalOffer, true);
|
|
|
|
}
|
2021-08-16 08:37:15 +02:00
|
|
|
|
|
|
|
public function getPhotography(): array
|
|
|
|
{
|
|
|
|
return GeneralUtility::trimExplode(',', $this->photography, true);
|
|
|
|
}
|
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-02-03 17:20:01 +01:00
|
|
|
}
|