/**
* Returns the name of the value as constant
* @see AbstractModel::getCleanName()
* @uses AbstractModel::getCleanName()
* @uses AbstractModel::getName()
* @uses AbstractModel::getOwner()
* @uses StructValue::constantSuffix()
* @uses StructValue::getIndex()
* @uses StructValue::getOwner()
* @uses Generator::getOptionGenericConstantsNames()
* @param bool $keepMultipleUnderscores optional, allows to keep the multiple consecutive underscores
* @return string
*/
public function getCleanName($keepMultipleUnderscores = false)
{
if ($this->getGenerator()->getOptionGenericConstantsNames()) {
return 'ENUM_VALUE_' . $this->getIndex();
} else {
$key = self::constantSuffix($this->getOwner()->getName(), parent::getCleanName($keepMultipleUnderscores), $this->getIndex());
return 'VALUE_' . strtoupper(parent::getCleanName($keepMultipleUnderscores)) . ($key ? '_' . $key : '');
}
}