2021-08-23 14:20:36 +02: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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
namespace WerkraumMedia\ThueCat\Domain\Import\Entity;
|
|
|
|
|
|
|
|
use WerkraumMedia\ThueCat\Domain\Import\EntityMapper\PropertyValues;
|
|
|
|
|
|
|
|
class AccessibilityCertification implements MapsToType
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
protected $accessibilityCertificationStatus = '';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
protected $certificationAccessibilityDeaf = '';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
protected $certificationAccessibilityMental = '';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
protected $certificationAccessibilityPartiallyDeaf = '';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
protected $certificationAccessibilityPartiallyVisual = '';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
protected $certificationAccessibilityVisual = '';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
protected $certificationAccessibilityWalking = '';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
protected $certificationAccessibilityWheelchair = '';
|
|
|
|
|
|
|
|
public function getAccessibilityCertificationStatus(): string
|
|
|
|
{
|
|
|
|
return $this->accessibilityCertificationStatus;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getCertificationAccessibilityDeaf(): string
|
|
|
|
{
|
|
|
|
return $this->certificationAccessibilityDeaf;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getCertificationAccessibilityMental(): string
|
|
|
|
{
|
|
|
|
return $this->certificationAccessibilityMental;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getCertificationAccessibilityPartiallyDeaf(): string
|
|
|
|
{
|
|
|
|
return $this->certificationAccessibilityPartiallyDeaf;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getCertificationAccessibilityPartiallyVisual(): string
|
|
|
|
{
|
|
|
|
return $this->certificationAccessibilityPartiallyVisual;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getCertificationAccessibilityVisual(): string
|
|
|
|
{
|
|
|
|
return $this->certificationAccessibilityVisual;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getCertificationAccessibilityWalking(): string
|
|
|
|
{
|
|
|
|
return $this->certificationAccessibilityWalking;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getCertificationAccessibilityWheelchair(): string
|
|
|
|
{
|
|
|
|
return $this->certificationAccessibilityWheelchair;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @internal for mapping via Symfony component.
|
2023-11-30 13:52:23 +01:00
|
|
|
*
|
2023-08-30 14:14:51 +02:00
|
|
|
* @param string|array $accessibilityCertificationStatus
|
2021-08-23 14:20:36 +02:00
|
|
|
*/
|
2023-08-30 14:14:51 +02:00
|
|
|
public function setAccessibilityCertificationStatus($accessibilityCertificationStatus): void
|
2021-08-23 14:20:36 +02:00
|
|
|
{
|
2023-08-30 14:14:51 +02:00
|
|
|
if (is_array($accessibilityCertificationStatus)) {
|
|
|
|
$accessibilityCertificationStatus = $accessibilityCertificationStatus['value'] ?? '';
|
|
|
|
}
|
2021-08-23 14:20:36 +02:00
|
|
|
$this->accessibilityCertificationStatus = PropertyValues::removePrefixFromEntry($accessibilityCertificationStatus);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @internal for mapping via Symfony component.
|
2023-11-30 13:52:23 +01:00
|
|
|
*
|
2023-08-30 14:14:51 +02:00
|
|
|
* @param string|array $certificationAccessibilityDeaf
|
2021-08-23 14:20:36 +02:00
|
|
|
*/
|
2023-08-30 14:14:51 +02:00
|
|
|
public function setCertificationAccessibilityDeaf($certificationAccessibilityDeaf): void
|
2021-08-23 14:20:36 +02:00
|
|
|
{
|
2023-08-30 14:14:51 +02:00
|
|
|
if (is_array($certificationAccessibilityDeaf)) {
|
|
|
|
$certificationAccessibilityDeaf = $certificationAccessibilityDeaf['value'] ?? '';
|
|
|
|
}
|
2021-08-23 14:20:36 +02:00
|
|
|
$this->certificationAccessibilityDeaf = PropertyValues::removePrefixFromEntry($certificationAccessibilityDeaf);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @internal for mapping via Symfony component.
|
2023-11-30 13:52:23 +01:00
|
|
|
*
|
2023-08-30 14:14:51 +02:00
|
|
|
* @param string|array $certificationAccessibilityMental
|
2021-08-23 14:20:36 +02:00
|
|
|
*/
|
2023-08-30 14:14:51 +02:00
|
|
|
public function setCertificationAccessibilityMental($certificationAccessibilityMental): void
|
2021-08-23 14:20:36 +02:00
|
|
|
{
|
2023-08-30 14:14:51 +02:00
|
|
|
if (is_array($certificationAccessibilityMental)) {
|
|
|
|
$certificationAccessibilityMental = $certificationAccessibilityMental['value'] ?? '';
|
|
|
|
}
|
2021-08-23 14:20:36 +02:00
|
|
|
$this->certificationAccessibilityMental = PropertyValues::removePrefixFromEntry($certificationAccessibilityMental);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @internal for mapping via Symfony component.
|
2023-11-30 13:52:23 +01:00
|
|
|
*
|
2023-08-30 14:14:51 +02:00
|
|
|
* @param string|array $certificationAccessibilityPartiallyDeaf
|
2021-08-23 14:20:36 +02:00
|
|
|
*/
|
2023-08-30 14:14:51 +02:00
|
|
|
public function setCertificationAccessibilityPartiallyDeaf($certificationAccessibilityPartiallyDeaf): void
|
2021-08-23 14:20:36 +02:00
|
|
|
{
|
2023-08-30 14:14:51 +02:00
|
|
|
if (is_array($certificationAccessibilityPartiallyDeaf)) {
|
|
|
|
$certificationAccessibilityPartiallyDeaf = $certificationAccessibilityPartiallyDeaf['value'] ?? '';
|
|
|
|
}
|
2021-08-23 14:20:36 +02:00
|
|
|
$this->certificationAccessibilityPartiallyDeaf = PropertyValues::removePrefixFromEntry($certificationAccessibilityPartiallyDeaf);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @internal for mapping via Symfony component.
|
2023-11-30 13:52:23 +01:00
|
|
|
*
|
2023-08-30 14:14:51 +02:00
|
|
|
* @param string|array $certificationAccessibilityPartiallyVisual
|
2021-08-23 14:20:36 +02:00
|
|
|
*/
|
2023-08-30 14:14:51 +02:00
|
|
|
public function setCertificationAccessibilityPartiallyVisual($certificationAccessibilityPartiallyVisual): void
|
2021-08-23 14:20:36 +02:00
|
|
|
{
|
2023-08-30 14:14:51 +02:00
|
|
|
if (is_array($certificationAccessibilityPartiallyVisual)) {
|
|
|
|
$certificationAccessibilityPartiallyVisual = $certificationAccessibilityPartiallyVisual['value'] ?? '';
|
|
|
|
}
|
2021-08-23 14:20:36 +02:00
|
|
|
$this->certificationAccessibilityPartiallyVisual = PropertyValues::removePrefixFromEntry($certificationAccessibilityPartiallyVisual);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @internal for mapping via Symfony component.
|
2023-11-30 13:52:23 +01:00
|
|
|
*
|
2023-08-30 14:14:51 +02:00
|
|
|
* @param string|array $certificationAccessibilityVisual
|
2021-08-23 14:20:36 +02:00
|
|
|
*/
|
2023-08-30 14:14:51 +02:00
|
|
|
public function setCertificationAccessibilityVisual($certificationAccessibilityVisual): void
|
2021-08-23 14:20:36 +02:00
|
|
|
{
|
2023-08-30 14:14:51 +02:00
|
|
|
if (is_array($certificationAccessibilityVisual)) {
|
|
|
|
$certificationAccessibilityVisual = $certificationAccessibilityVisual['value'] ?? '';
|
|
|
|
}
|
2021-08-23 14:20:36 +02:00
|
|
|
$this->certificationAccessibilityVisual = PropertyValues::removePrefixFromEntry($certificationAccessibilityVisual);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @internal for mapping via Symfony component.
|
2023-11-30 13:52:23 +01:00
|
|
|
*
|
2023-08-30 14:14:51 +02:00
|
|
|
* @param string|array $certificationAccessibilityWalking
|
2021-08-23 14:20:36 +02:00
|
|
|
*/
|
2023-08-30 14:14:51 +02:00
|
|
|
public function setCertificationAccessibilityWalking($certificationAccessibilityWalking): void
|
2021-08-23 14:20:36 +02:00
|
|
|
{
|
2023-08-30 14:14:51 +02:00
|
|
|
if (is_array($certificationAccessibilityWalking)) {
|
|
|
|
$certificationAccessibilityWalking = $certificationAccessibilityWalking['value'] ?? '';
|
|
|
|
}
|
2021-08-23 14:20:36 +02:00
|
|
|
$this->certificationAccessibilityWalking = PropertyValues::removePrefixFromEntry($certificationAccessibilityWalking);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @internal for mapping via Symfony component.
|
2023-11-30 13:52:23 +01:00
|
|
|
*
|
2023-08-30 14:14:51 +02:00
|
|
|
* @param string|array $certificationAccessibilityWheelchair
|
2021-08-23 14:20:36 +02:00
|
|
|
*/
|
2023-08-30 14:14:51 +02:00
|
|
|
public function setCertificationAccessibilityWheelchair($certificationAccessibilityWheelchair): void
|
2021-08-23 14:20:36 +02:00
|
|
|
{
|
2023-08-30 14:14:51 +02:00
|
|
|
if (is_array($certificationAccessibilityWheelchair)) {
|
|
|
|
$certificationAccessibilityWheelchair = $certificationAccessibilityWheelchair['value'] ?? '';
|
|
|
|
}
|
2021-08-23 14:20:36 +02:00
|
|
|
$this->certificationAccessibilityWheelchair = PropertyValues::removePrefixFromEntry($certificationAccessibilityWheelchair);
|
|
|
|
}
|
|
|
|
|
|
|
|
public static function getSupportedTypes(): array
|
|
|
|
{
|
|
|
|
return [
|
|
|
|
'thuecat:AccessibilityCertification',
|
|
|
|
];
|
|
|
|
}
|
|
|
|
|
|
|
|
public static function getPriority(): int
|
|
|
|
{
|
|
|
|
return 10;
|
|
|
|
}
|
|
|
|
}
|