final protected function validateString($value, array $allowed) : bool
    {
        if (true === in_array('string', $allowed)) {
            if (true === is_string($value)) {
                return true;
            }
        }

        return false;
    }
final protected function validateString($value, array $allowed) : bool
    {
        if (true === in_array('string', $allowed)) {
            if (true === is_string($value)) {
                return true;
            }
        }

        return false;
    }
final protected function validateString ( $ value , array $ allowed ) : bool { if ( true === in_array ( 'string' , $ allowed ) ) { if ( true === is_string ( $ value ) ) { return true ; } } return false ; }
Validates an string setting.

@param mixed $value   The value we are validating.
@param array $allowed Which items are allowed.

@throws \InvalidArgumentException If the data is inaccurate/incorrect.
@return bool True if validated, false if not
Validates an string setting .