public static function cleanUpArray(array $parameters)
    {
        $cleanup = [];

        foreach ($parameters as $name => $value) {
            if (array_key_exists($name, self::CONFIRMATION_PROPERTIES)) {
                $cleanup[$name] = $value;
            }
        }

        return $cleanup;
    }
public static function cleanUpArray(array $parameters)
    {
        $cleanup = [];

        foreach ($parameters as $name => $value) {
            if (array_key_exists($name, self::CONFIRMATION_PROPERTIES)) {
                $cleanup[$name] = $value;
            }
        }

        return $cleanup;
    }
public static function cleanUpArray ( array $ parameters ) { $ cleanup = [ ] ; foreach ( $ parameters as $ name => $ value ) { if ( array_key_exists ( $ name , self :: CONFIRMATION_PROPERTIES ) ) { $ cleanup [ $ name ] = $ value ; } } return $ cleanup ; }
Set the parameters of the Confirmation object

@param array $parameters cleanUp the given Array to only the once valid property names, see CONFIRMATION_PROPERTIES

@return array
Set the parameters of the Confirmation object