private function checkRequiredParams(array $params, array $required) {
        foreach ($required as $param) {
            if (!isset($params[$param])) {
                throw new TransformationException('Missing required parameter: ' . $param, 400);
            }
        }
    }
private function checkRequiredParams(array $params, array $required) {
        foreach ($required as $param) {
            if (!isset($params[$param])) {
                throw new TransformationException('Missing required parameter: ' . $param, 400);
            }
        }
    }
private function checkRequiredParams ( array $ params , array $ required ) { foreach ( $ required as $ param ) { if ( ! isset ( $ params [ $ param ] ) ) { throw new TransformationException ( 'Missing required parameter: ' . $ param , 400 ) ; } } }
Check that all params are present

@param array $params Transformation parameter list
@param array $required Array with required parameters
@throws TransformationException
Check that all params are present