protected function saveCompoundParameterData(array $compoundData)
    {
        foreach ($compoundData as $name => $value) {
            $matchExists = false;
            foreach ($this->parameterNameMapper as $regex => $parameterName) {
                if (preg_match($regex, $name, $matches) === 1) {
                    $parameterLastIndex = '';

                    if (isset($matches[1])) {
                        $parameterLastIndex = $matches[1];
                    }

                    $matchExists = true;
                    $this->parameters[$parameterName . $parameterLastIndex] = $value;

                    break;
                }
            }

            if (!$matchExists) {
                throw new \InvalidArgumentException("Unknown parameter $name for " . get_class($this) . ' data');
            }
        }
    }
protected function saveCompoundParameterData(array $compoundData)
    {
        foreach ($compoundData as $name => $value) {
            $matchExists = false;
            foreach ($this->parameterNameMapper as $regex => $parameterName) {
                if (preg_match($regex, $name, $matches) === 1) {
                    $parameterLastIndex = '';

                    if (isset($matches[1])) {
                        $parameterLastIndex = $matches[1];
                    }

                    $matchExists = true;
                    $this->parameters[$parameterName . $parameterLastIndex] = $value;

                    break;
                }
            }

            if (!$matchExists) {
                throw new \InvalidArgumentException("Unknown parameter $name for " . get_class($this) . ' data');
            }
        }
    }
protected function saveCompoundParameterData ( array $ compoundData ) { foreach ( $ compoundData as $ name => $ value ) { $ matchExists = false ; foreach ( $ this -> parameterNameMapper as $ regex => $ parameterName ) { if ( preg_match ( $ regex , $ name , $ matches ) === 1 ) { $ parameterLastIndex = '' ; if ( isset ( $ matches [ 1 ] ) ) { $ parameterLastIndex = $ matches [ 1 ] ; } $ matchExists = true ; $ this -> parameters [ $ parameterName . $ parameterLastIndex ] = $ value ; break ; } } if ( ! $ matchExists ) { throw new \ InvalidArgumentException ( "Unknown parameter $name for " . get_class ( $ this ) . ' data' ) ; } } }
Translates the human readable names into the payload ones and saves them along with the values.

@param array $compoundData
@throws \InvalidArgumentException
Translates the human readable names into the payload ones and saves them along with the values .