protected function getEntityTypeCode()
    {

        // try to map the command name to a entity type code
        if (array_key_exists($commandName = $this->getCommandName(), $this->commandNameToEntityTypeCode)) {
            return $this->commandNameToEntityTypeCode[$commandName];
        }

        // throw an exception if not possible
        throw new \Exception(sprintf('Can\' map command name %s to a entity type', $commandName));
    }
protected function getEntityTypeCode()
    {

        // try to map the command name to a entity type code
        if (array_key_exists($commandName = $this->getCommandName(), $this->commandNameToEntityTypeCode)) {
            return $this->commandNameToEntityTypeCode[$commandName];
        }

        // throw an exception if not possible
        throw new \Exception(sprintf('Can\' map command name %s to a entity type', $commandName));
    }
protected function getEntityTypeCode ( ) { // try to map the command name to a entity type code if ( array_key_exists ( $ commandName = $ this -> getCommandName ( ) , $ this -> commandNameToEntityTypeCode ) ) { return $ this -> commandNameToEntityTypeCode [ $ commandName ] ; } // throw an exception if not possible throw new \ Exception ( sprintf ( 'Can\' map command name %s to a entity type' , $ commandName ) ) ; }
Return's the command's entity type code.

@return string The command's entity type code
@throws \Exception Is thrown, if the command name can not be mapped
Return s the command s entity type code .