src/Model/AbstractModel.php
public function getPackagedName($namespaced = false)
    {
        $nameParts = [];
        if ($namespaced && $this->getNamespace() !== '') {
            $nameParts[] = sprintf('\%s\\', $this->getNamespace());
        }
        $cleanName = $this->getCleanName();
        if ($this->getGenerator()->getOptionPrefix() !== '') {
            $nameParts[] = $this->getGenerator()->getOptionPrefix();
        } else {
            $cleanName = self::replacePhpReservedKeyword($cleanName);
        }
        $nameParts[] = ucfirst(self::uniqueName($cleanName, $this->getContextualPart()));
        if ($this->getGenerator()->getOptionSuffix() !== '') {
            $nameParts[] = $this->getGenerator()->getOptionSuffix();
        }
        return implode('', $nameParts);
    }
public function getPackagedName($namespaced = false)
    {
        $nameParts = [];
        if ($namespaced && $this->getNamespace() !== '') {
            $nameParts[] = sprintf('\%s\\', $this->getNamespace());
        }
        $cleanName = $this->getCleanName();
        if ($this->getGenerator()->getOptionPrefix() !== '') {
            $nameParts[] = $this->getGenerator()->getOptionPrefix();
        } else {
            $cleanName = self::replacePhpReservedKeyword($cleanName);
        }
        $nameParts[] = ucfirst(self::uniqueName($cleanName, $this->getContextualPart()));
        if ($this->getGenerator()->getOptionSuffix() !== '') {
            $nameParts[] = $this->getGenerator()->getOptionSuffix();
        }
        return implode('', $nameParts);
    }
public function getPackagedName ( $ namespaced = false ) { $ nameParts = [ ] ; if ( $ namespaced && $ this -> getNamespace ( ) !== '' ) { $ nameParts [ ] = sprintf ( '\%s\\' , $ this -> getNamespace ( ) ) ; } $ cleanName = $ this -> getCleanName ( ) ; if ( $ this -> getGenerator ( ) -> getOptionPrefix ( ) !== '' ) { $ nameParts [ ] = $ this -> getGenerator ( ) -> getOptionPrefix ( ) ; } else { $ cleanName = self :: replacePhpReservedKeyword ( $ cleanName ) ; } $ nameParts [ ] = ucfirst ( self :: uniqueName ( $ cleanName , $ this -> getContextualPart ( ) ) ) ; if ( $ this -> getGenerator ( ) -> getOptionSuffix ( ) !== '' ) { $ nameParts [ ] = $ this -> getGenerator ( ) -> getOptionSuffix ( ) ; } return implode ( '' , $ nameParts ) ; }
Returns the packaged name
@uses AbstractModel::getNamespace()
@uses AbstractModel::getCleanName()
@uses AbstractModel::getContextualPart()
@uses AbstractModel::uniqueName()
@uses AbstractModel::replacePhpReservedKeyword()
@uses AbstractGeneratorAware::getGenerator()
@uses Generator::getOptionPrefix()
@uses Generator::getOptionSuffix()
@uses AbstractModel::uniqueName() to ensure unique naming of struct case sensitively
@param bool $namespaced
@return string
Returns the packaged name