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]);
}
}
}