Scalr\Service\Aws\AbstractDataType::resetObject PHP Method

resetObject() public method

Resets object including internal properties values keys for which are defined in protected $_properties array.
public resetObject ( )
    public function resetObject()
    {
        $props = $this->getReflectionClass()->getProperties(\ReflectionProperty::IS_PUBLIC);
        /* @var $prop \ReflectionProperty */
        foreach ($props as $prop) {
            $prop->setValue($this, null);
        }
        //Resets an internal properties as well
        foreach ($this->_properties as $prop) {
            if (isset($this->propertiesData[$prop])) {
                unset($this->propertiesData[$prop]);
            }
        }
    }