src/Types/BaseType.php
private function set($class, $name, $value)
    {
        self::ensurePropertyExists($class, $name);
        self::ensurePropertyType($class, $name, $value);

        $this->setValue($class, $name, $value);
    }
private function set($class, $name, $value)
    {
        self::ensurePropertyExists($class, $name);
        self::ensurePropertyType($class, $name, $value);

        $this->setValue($class, $name, $value);
    }
Assign a value to a property.

@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 \DTS\eBaySDK\Exceptions\UnknownPropertyException If the property does not exist.
@throws \DTS\eBaySDK\Exceptions\InvalidPropertyTypeException If the value is the wrong type for the property.