protected function checkIfSingleInSetOrEmpty(
        $fieldName,
        $canUseFlexforms,
        $sheet,
        $explanation,
        array $allowedValues
    ) {
        if ($this->objectToCheck->hasConfValueString($fieldName, $sheet)) {
            $value = $this->objectToCheck->getConfValueString($fieldName, $sheet);
            $this->checkIfSingleInSetOrEmptyValue(
                $value,
                $fieldName,
                $canUseFlexforms,
                $explanation,
                $allowedValues
            );
        }
    }
protected function checkIfSingleInSetOrEmpty(
        $fieldName,
        $canUseFlexforms,
        $sheet,
        $explanation,
        array $allowedValues
    ) {
        if ($this->objectToCheck->hasConfValueString($fieldName, $sheet)) {
            $value = $this->objectToCheck->getConfValueString($fieldName, $sheet);
            $this->checkIfSingleInSetOrEmptyValue(
                $value,
                $fieldName,
                $canUseFlexforms,
                $explanation,
                $allowedValues
            );
        }
    }
protected function checkIfSingleInSetOrEmpty ( $ fieldName , $ canUseFlexforms , $ sheet , $ explanation , array $ allowedValues ) { if ( $ this -> objectToCheck -> hasConfValueString ( $ fieldName , $ sheet ) ) { $ value = $ this -> objectToCheck -> getConfValueString ( $ fieldName , $ sheet ) ; $ this -> checkIfSingleInSetOrEmptyValue ( $ value , $ fieldName , $ canUseFlexforms , $ explanation , $ allowedValues ) ; } }
Checks whether a configuration value either is empty or lies within a
set of allowed values.

@param string $fieldName
TS setup field name to extract, must not be empty
@param bool $canUseFlexforms
whether the value can also be set via flexforms (this will be
mentioned in the error message)
@param string $sheet
flexforms sheet pointer, eg. "sDEF", will be ignored if
$canUseFlexforms is set to FALSE
@param string $explanation
a sentence explaining what that configuration value is needed for,
must not be empty
@param string[] $allowedValues
allowed values (must not be empty)

@return void
Checks whether a configuration value either is empty or lies within a set of allowed values .