protected function setValues($class, array $values = array())
    {
        foreach ($values as $property => $value) {
            $actualValue = self::determineActualValueToAssign($class, $property, $value);
            $this->set($class, $property, $actualValue);
        }
    }
protected function setValues($class, array $values = array())
    {
        foreach ($values as $property => $value) {
            $actualValue = self::determineActualValueToAssign($class, $property, $value);
            $this->set($class, $property, $actualValue);
        }
    }
protected function setValues ( $ class , array $ values = array ( ) ) { foreach ( $ values as $ property => $ value ) { $ actualValue = self :: determineActualValueToAssign ( $ class , $ property , $ value ) ; $ this -> set ( $ class , $ property , $ actualValue ) ; } }
Assign multiple values to an object.

@param string $class The name of the class the properties belong to.
@param array $values. Associative array of property names and their values.
@throws UnknownPropertyException If the property does not exist.
@throws InvalidPropertyTypeException If the value is the wrong type for the property.
Assign multiple values to an object .