src/Publisher/Helper/Validator.php
static function checkRequiredParametersAreSet(array $given, array $required)
    {
        foreach ($required as $key) {
            if (empty($given[$key])) {
                throw new MissingRequiredParameterException(
                        "Missing required parameter '$key'"
                );
            }
        }
    }
static function checkRequiredParametersAreSet(array $given, array $required)
    {
        foreach ($required as $key) {
            if (empty($given[$key])) {
                throw new MissingRequiredParameterException(
                        "Missing required parameter '$key'"
                );
            }
        }
    }
static function checkRequiredParametersAreSet ( array $ given , array $ required ) { foreach ( $ required as $ key ) { if ( empty ( $ given [ $ key ] ) ) { throw new MissingRequiredParameterException ( "Missing required parameter '$key'" ) ; } } }
Validates if all required parameters are set.

@param array $given
@param array $required contains required keys
Validates if all required parameters are set .