public function setMetadataValues($values)
    {
        foreach ($values as $name => $value) {
            $this->metadata[$name] = $value;
        }
    }
public function setMetadataValues($values)
    {
        foreach ($values as $name => $value) {
            $this->metadata[$name] = $value;
        }
    }
public function setMetadataValues ( $ values ) { foreach ( $ values as $ name => $ value ) { $ this -> metadata [ $ name ] = $ value ; } }
Sets several metadata values by name.

@param array $values Array mapping metadata names with metadata values.
Sets several metadata values by name .