src/Publisher/Helper/Validator.php
static function checkRequiredParameters(array $given, array $required)
    {
        foreach ($required as $key) {
            if (!array_key_exists($key, $given)) {
                throw new MissingRequiredParameterException(
                        "Missing required parameter '$key'"
                );
            }
        }
    }
static function checkRequiredParameters(array $given, array $required)
    {
        foreach ($required as $key) {
            if (!array_key_exists($key, $given)) {
                throw new MissingRequiredParameterException(
                        "Missing required parameter '$key'"
                );
            }
        }
    }
static function checkRequiredParameters ( array $ given , array $ required ) { foreach ( $ required as $ key ) { if ( ! array_key_exists ( $ key , $ given ) ) { throw new MissingRequiredParameterException ( "Missing required parameter '$key'" ) ; } } }
Validates if all required parameters are present.

@param array $given
@param array $required contains required keys

@throws MissingRequiredParameterException

@return void
Validates if all required parameters are present .