thuecat/Classes/Domain/Import/Entity/AccessibilityCertification.php

201 lines
7.1 KiB
PHP

<?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
{
protected string $accessibilityCertificationStatus = '';
protected string $certificationAccessibilityDeaf = '';
protected string $certificationAccessibilityMental = '';
protected string $certificationAccessibilityPartiallyDeaf = '';
protected string $certificationAccessibilityPartiallyVisual = '';
protected string $certificationAccessibilityVisual = '';
protected string $certificationAccessibilityWalking = '';
protected string $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.
*
* @param string|array $accessibilityCertificationStatus
*/
public function setAccessibilityCertificationStatus($accessibilityCertificationStatus): void
{
if (is_array($accessibilityCertificationStatus)) {
$accessibilityCertificationStatus = $accessibilityCertificationStatus['value'] ?? '';
}
$this->accessibilityCertificationStatus = PropertyValues::removePrefixFromEntry($accessibilityCertificationStatus);
}
/**
* @internal for mapping via Symfony component.
*
* @param string|array $certificationAccessibilityDeaf
*/
public function setCertificationAccessibilityDeaf($certificationAccessibilityDeaf): void
{
if (is_array($certificationAccessibilityDeaf)) {
$certificationAccessibilityDeaf = $certificationAccessibilityDeaf['value'] ?? '';
}
$this->certificationAccessibilityDeaf = PropertyValues::removePrefixFromEntry($certificationAccessibilityDeaf);
}
/**
* @internal for mapping via Symfony component.
*
* @param string|array $certificationAccessibilityMental
*/
public function setCertificationAccessibilityMental($certificationAccessibilityMental): void
{
if (is_array($certificationAccessibilityMental)) {
$certificationAccessibilityMental = $certificationAccessibilityMental['value'] ?? '';
}
$this->certificationAccessibilityMental = PropertyValues::removePrefixFromEntry($certificationAccessibilityMental);
}
/**
* @internal for mapping via Symfony component.
*
* @param string|array $certificationAccessibilityPartiallyDeaf
*/
public function setCertificationAccessibilityPartiallyDeaf($certificationAccessibilityPartiallyDeaf): void
{
if (is_array($certificationAccessibilityPartiallyDeaf)) {
$certificationAccessibilityPartiallyDeaf = $certificationAccessibilityPartiallyDeaf['value'] ?? '';
}
$this->certificationAccessibilityPartiallyDeaf = PropertyValues::removePrefixFromEntry($certificationAccessibilityPartiallyDeaf);
}
/**
* @internal for mapping via Symfony component.
*
* @param string|array $certificationAccessibilityPartiallyVisual
*/
public function setCertificationAccessibilityPartiallyVisual($certificationAccessibilityPartiallyVisual): void
{
if (is_array($certificationAccessibilityPartiallyVisual)) {
$certificationAccessibilityPartiallyVisual = $certificationAccessibilityPartiallyVisual['value'] ?? '';
}
$this->certificationAccessibilityPartiallyVisual = PropertyValues::removePrefixFromEntry($certificationAccessibilityPartiallyVisual);
}
/**
* @internal for mapping via Symfony component.
*
* @param string|array $certificationAccessibilityVisual
*/
public function setCertificationAccessibilityVisual($certificationAccessibilityVisual): void
{
if (is_array($certificationAccessibilityVisual)) {
$certificationAccessibilityVisual = $certificationAccessibilityVisual['value'] ?? '';
}
$this->certificationAccessibilityVisual = PropertyValues::removePrefixFromEntry($certificationAccessibilityVisual);
}
/**
* @internal for mapping via Symfony component.
*
* @param string|array $certificationAccessibilityWalking
*/
public function setCertificationAccessibilityWalking($certificationAccessibilityWalking): void
{
if (is_array($certificationAccessibilityWalking)) {
$certificationAccessibilityWalking = $certificationAccessibilityWalking['value'] ?? '';
}
$this->certificationAccessibilityWalking = PropertyValues::removePrefixFromEntry($certificationAccessibilityWalking);
}
/**
* @internal for mapping via Symfony component.
*
* @param string|array $certificationAccessibilityWheelchair
*/
public function setCertificationAccessibilityWheelchair($certificationAccessibilityWheelchair): void
{
if (is_array($certificationAccessibilityWheelchair)) {
$certificationAccessibilityWheelchair = $certificationAccessibilityWheelchair['value'] ?? '';
}
$this->certificationAccessibilityWheelchair = PropertyValues::removePrefixFromEntry($certificationAccessibilityWheelchair);
}
public static function getSupportedTypes(): array
{
return [
'thuecat:AccessibilityCertification',
];
}
public static function getPriority(): int
{
return 10;
}
}