private function setValue($class, $name, $value)
    {
        $info = self::propertyInfo($class, $name);

        if (!$info['unbound']) {
            $this->values[$name] = $value;
        } else {
            $actualType = self::getActualType($value);
            if ('array' !== $actualType) {
                throw new Exceptions\InvalidPropertyTypeException(get_class($this), $name, 'DTS\eBaySDK\Types\UnboundType', $actualType);
            } else {
                $this->values[$name] = new Types\UnboundType(get_class($this), $name, $info['type']);
                foreach ($value as $item) {
                    $this->values[$name][] = $item;
                }
            }
        }
    }
private function setValue($class, $name, $value)
    {
        $info = self::propertyInfo($class, $name);

        if (!$info['unbound']) {
            $this->values[$name] = $value;
        } else {
            $actualType = self::getActualType($value);
            if ('array' !== $actualType) {
                throw new Exceptions\InvalidPropertyTypeException(get_class($this), $name, 'DTS\eBaySDK\Types\UnboundType', $actualType);
            } else {
                $this->values[$name] = new Types\UnboundType(get_class($this), $name, $info['type']);
                foreach ($value as $item) {
                    $this->values[$name][] = $item;
                }
            }
        }
    }
private function setValue ( $ class , $ name , $ value ) { $ info = self :: propertyInfo ( $ class , $ name ) ; if ( ! $ info [ 'unbound' ] ) { $ this -> values [ $ name ] = $ value ; } else { $ actualType = self :: getActualType ( $ value ) ; if ( 'array' !== $ actualType ) { throw new Exceptions \ InvalidPropertyTypeException ( get_class ( $ this ) , $ name , 'DTS\eBaySDK\Types\UnboundType' , $ actualType ) ; } else { $ this -> values [ $ name ] = new Types \ UnboundType ( get_class ( $ this ) , $ name , $ info [ 'type' ] ) ; foreach ( $ value as $ item ) { $ this -> values [ $ name ] [ ] = $ item ; } } } }
Set the value of a property. Assumes property exists.

@param string $class The name of the class the properties belong to.
@param string $name The property name.
@param mixed $value. The value to assign to the property.
@throws InvalidPropertyTypeException If trying to assign a non array type to an unbound property.
Set the value of a property . Assumes property exists .