src/Model/StructValue.php
public function getCleanName($keepMultipleUnderscores = false)
    {
        if ($this->getGenerator()->getOptionGenericConstantsNames()) {
            return 'ENUM_VALUE_' . $this->getIndex();
        } else {
            $nameWithSeparatedWords = $this->getNameWithSeparatedWords($keepMultipleUnderscores);
            $key = self::constantSuffix($this->getOwner()->getName(), $nameWithSeparatedWords, $this->getIndex());
            return 'VALUE_' . mb_strtoupper($nameWithSeparatedWords . ($key ? '_' . $key : ''));
        }
    }
public function getCleanName($keepMultipleUnderscores = false)
    {
        if ($this->getGenerator()->getOptionGenericConstantsNames()) {
            return 'ENUM_VALUE_' . $this->getIndex();
        } else {
            $nameWithSeparatedWords = $this->getNameWithSeparatedWords($keepMultipleUnderscores);
            $key = self::constantSuffix($this->getOwner()->getName(), $nameWithSeparatedWords, $this->getIndex());
            return 'VALUE_' . mb_strtoupper($nameWithSeparatedWords . ($key ? '_' . $key : ''));
        }
    }
public function getCleanName ( $ keepMultipleUnderscores = false ) { if ( $ this -> getGenerator ( ) -> getOptionGenericConstantsNames ( ) ) { return 'ENUM_VALUE_' . $ this -> getIndex ( ) ; } else { $ nameWithSeparatedWords = $ this -> getNameWithSeparatedWords ( $ keepMultipleUnderscores ) ; $ key = self :: constantSuffix ( $ this -> getOwner ( ) -> getName ( ) , $ nameWithSeparatedWords , $ this -> getIndex ( ) ) ; return 'VALUE_' . mb_strtoupper ( $ nameWithSeparatedWords . ( $ key ? '_' . $ key : '' ) ) ; } }
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
Returns the name of the value as constant