public function setValues(array $values)
    {
        foreach ($values as $name => $value) {
            $this->fields->set($name, $value);
        }

        return $this;
    }
public function setValues(array $values)
    {
        foreach ($values as $name => $value) {
            $this->fields->set($name, $value);
        }

        return $this;
    }
public function setValues ( array $ values ) { foreach ( $ values as $ name => $ value ) { $ this -> fields -> set ( $ name , $ value ) ; } return $ this ; }
Sets the value of the fields.

@param array $values An array of field values

@return $this
Sets the value of the fields .