Returns the prefix of the MSISDN number.

@return string The prefix of the MSISDN number
556412
public function getPrefix()
    {
        if ($this->prefix == null) {
            $this->prefix = substr($this->msisdn, 0, 3);
        }

        return $this->prefix;
    }
413292
public function getDn()
    {
        if ($this->dn === null) {
            return $this->dn;
        } elseif (empty($this->dn)) {
            return $this->adldap->getBaseDn();
        }

        return $this->dn;
    }
1217366
protected function getPrefixKeys()
    {
        $options = $this->pubsub->getClient()->getOptions();

        if (isset($options->prefix)) {
            return $options->prefix->getPrefix();
        }

        return '';
    }
1051238
public static function name()
    {
        return sprintf(
            self::pickOne(array(
                '%1$s %2$s %3$s',
                '%2$s %3$s %4$s',
                '%2$s %3$s',
                '%2$s %3$s',
                '%2$s %3$s',
                '%2$s %3$s',
            )),
            self::prefix(),
            self::firstName(),
            self::lastName(),
            self::suffix()
        );
    }
953685
public function getMsisdn()
    {
        $this->debug->debug(__FUNCTION__, 'isMobile: ' . $this->mDetect->isMobile());
        $this->debug->debug(__FUNCTION__, 'isTablet: ' . $this->mDetect->isTablet());
        try {
            if ($this->mDetect->isMobile() || $this->mDetect->isTablet()) {
                $msisdn = $this->MSISDN->getMsisdn();
                $this->debug->info(__FUNCTION__, 'MSISDN: ' . json_encode($msisdn));

                return $msisdn;
            }
        }
        catch (\Exception $e) {
            $message = 'Error File: ' . $e->getFile() . ' - Line: ' . $e->getLine() . ' - Code: ' . $e->getCode() . ' - Message: ' . $e->getMessage();
            $this->debug->error(__FUNCTION__, $message);

            return NULL;
        }
        $this->debug->info(__FUNCTION__, 'MSISDN is Null');

        return NULL;
    }
1332412
public function getRegexp()
    {
        $regexps = array();
        /** @var PrefixBasedResolverInterface $resolver */
        foreach ($this->resolvers as $resolver) {
            $regexp = preg_replace('/^\^/', '', substr($resolver->getRegexp(), 1, -1));
            if ($regexp !== '') {
                $regexps[] = $regexp;
            }
        }
        return '/^(' . implode('|', $regexps) . ')/';
    }
194351
public function getPrefix()
    {
        if (is_null($this->_prefix)) {
            $hostName = gethostname();
            try {
                $this->_prefix = Configuration::get('config')
                    ->get('logger.prefix', $hostName);
            } catch(FileNotFoundException $exp) {
                $this->_prefix = $hostName;
            }

        }
        return $this->_prefix;
    }
1195300
public function getFullHost()
    {
        // Case 1: Host hasn't suffix, possibly IP.

        if (null === $this->suffix) {
            return $this->hostname;
        }

        // Case 2: Domain with suffix, but without subdomain.

        if (null === $this->subdomain) {
            return $this->hostname . '.' . $this->suffix;
        }

        // Case 3: Domain with suffix & subdomain.

        return implode('.', [$this->subdomain, $this->hostname, $this->suffix]);
    }
231327
public function getTablePrefix()
    {
        if (isset($this->options['table_prefix'])) {
            $tablePrefix = $this->options['table_prefix'];
        } else {
        	$tablePrefix = $this->getDb()->getTablePrefix();
        }
        
        return $tablePrefix;
    }
37529
protected function getNewPrefix()
    {
        // Removing old sprites
        $find = new Finder();
        $fs = new Filesystem();
        $fs->remove(
            $find->in($this->imgDir)->directories(),
            $this->stylePath
        );

        // New prefix
        $prefix = substr(sha1(microtime(true) . 'sprites'), 1, 10);
        $fs->mkdir($this->imgDir . '/' . $prefix);

        return $prefix;
    }
760877
public function getIndexName(): string
    {
        $indexName = $this->searchClient->getIndexName();
        if ($this->indexNamePostfix !== '') {
            $indexName .= '-' . $this->indexNamePostfix;
        }

        return $indexName;
    }
1315870
public function getIndexName()
    {
        $name = $this->sanitiseClassName(get_class($this), '-');

        $indexParts = [$name];

        if ($indexPrefix = Environment::getEnv('SS_SOLR_INDEX_PREFIX')) {
            array_unshift($indexParts, $indexPrefix);
        }

        if ($indexSuffix = Environment::getEnv('SS_SOLR_INDEX_SUFFIX')) {
            $indexParts[] = $indexSuffix;
        }

        return implode($indexParts);
    }
1037026
public function getPrintableName() : string
    {
        $characteristic = $this->getCharacteristic();

        if ($characteristic === Option::LONG)
        {
            $prefix = '--';
        }
        elseif ($characteristic === Option::SHORT)
        {
            $prefix = '-';
        }

        return $prefix.$this->name;
    }
277608
public function getRouteIdentifierPrefix()
    {
        if ($this->routeIdentifierPrefix === null) {
            $this->routeIdentifierPrefix = strtolower($this->getModuleNamespace() . '/' . $this->getClassNameWithoutNamespace());
        }
        return $this->routeIdentifierPrefix;
    }
1145254
public function GetObjectName() 
	{
		if (is_numeric(substr($this->Name, 0, 1))) {
			return self::$NUMERIC_TABLE_PREFIX . $this->Name;
		}
		
		return $this->Name;
	}
876162
public function toString()
    {
        if ($this->max !== -1) {
            return vsprintf('{length: %d <= x <= %d}', [
                $this->min,
                $this->max,
            ]);
        }

        return vsprintf('{length: %d <= x}', [
            $this->min,
        ]);
    }
96440
public function getDashedName(): string
    {
        $dashedName = ucfirst($this->name);
        $dashedName = preg_replace('/([A-Z][a-z0-9]+)/', '$1-', $dashedName);
        return '--' . strtolower(substr($dashedName, 0, -1));
    }