public function setValues(array $values)
    {
        foreach ($values as $name => $value) {
            if ($element = $this->get($name)) {
                $element->setValue($value);
            }
        }
        return $this;
    }
public function setValues(array $values)
    {
        foreach ($values as $name => $value) {
            if ($element = $this->get($name)) {
                $element->setValue($value);
            }
        }
        return $this;
    }
public function setValues ( array $ values ) { foreach ( $ values as $ name => $ value ) { if ( $ element = $ this -> get ( $ name ) ) { $ element -> setValue ( $ value ) ; } } return $ this ; }
Sets the values form matched elements

The passed array is a key/value array where keys are used to
match against element names. It will only assign the value to
the marched element only.

@param array $values

@return self|$this|ContainerInterface
Sets the values form matched elements