public function values(array $values) { // Remove all values which do not have a corresponding field $values = array_intersect_key($values, $this->_fields); foreach ($values as $field => $value) { $this->{$field} = $value; } return $this; }