get a phone number key press handler.

@return PhoneNumberKeyPressHandler
502333
public static final KeyPressHandler getPhoneNumberKeyPressHandler() { // NOPMD it's thread save!
    if (HandlerFactory.phoneNumberKeyPressHandler == null) {
      synchronized (PhoneNumberKeyPressHandler.class) {
        if (HandlerFactory.phoneNumberKeyPressHandler == null) {
          HandlerFactory.phoneNumberKeyPressHandler = new PhoneNumberKeyPressHandler();
        }
      }
    }
    return HandlerFactory.phoneNumberKeyPressHandler;
  }
580334
public function getWorkPhone()
    {
        if (!isset($this->workPhone)) {
            $wp = trim($this->getRawWorkPhone());
            if (empty($wp)) {
                $this->workPhone = null;
            } else {
                if (preg_match('/^\+?[-\d\s()]+/', $wp, $matches)) {
                    $wp = $matches[0];
                    $wp = trim(str_replace(['(', ')'], '', $wp));
                    if (strlen(str_replace(' ', '', $wp)) === 4) {
                        $wp = self::phonePrefixForExt($wp) . $wp;
                    }
                    if ($wp[0] !== '0' && $wp[0] !== '+') {
                        $wp = '08' . $wp;
                    }
                    $phoneUtil = \libphonenumber\PhoneNumberUtil::getInstance();
                    try {
                        $this->workPhone = $phoneUtil->parse($wp, 'SE');
                    } catch (\libphonenumber\NumberParseException $e) {
                        $this->workPhone = $this->getRawWorkPhone();
                    }
                } else {
                    $this->workPhone = $this->getRawWorkPhone();
                }
            }
        }
        return $this->workPhone;
    }
25860
@SuppressWarnings("unused")
    public Phonenumber.PhoneNumber getPhoneNumber() {
        try {
            String iso = null;
            if (mSelectedCountry != null) {
                iso = mSelectedCountry.getIso();
            }
            return mPhoneUtil.parse(mPhoneEdit.getText().toString(), iso);
        } catch (NumberParseException ignored) {
            return null;
        }
    }
860256
public function getDevHandler()
    {
        static $handle = false;

        if ($handle === false) {
            $handle = $this->cookieConfig->getConfigFromCookies('deep', static::SETTING_DEV_HANDLE);
        }

        return $handle;
    }
1181182
static public function getCaller()
    {
        $backtrace = debug_backtrace();
        array_shift($backtrace);
        $current = array_shift($backtrace);
        $caller = isset($backtrace[0]) ? $backtrace[0] : $current;
        if (!isset($caller['class']))  $caller['class'] = null;
        if (!isset($caller['object'])) $caller['object'] = null;
        return $caller;
    }
762969
public function getHandler()
    {
        if (is_callable($this->handler)) {
            return $this->handler;
        }

        $options = $this->options;

        return function ($value) use ($options) {
            if (in_array($value, $options)) {
                return true;
            }

            return false;
        };
    }
34747
public function getPhone() : ?string 
    {
        if ( ! $this->hasPhone()) {
            $this->setPhone($this->getDefaultPhone());
        }
        return $this->phone;
    }
443930
protected function get_key_from_position() {
        $keylist = array_keys($this->userlists);
        if (isset($keylist[$this->iteratorposition])) {
            return $keylist[$this->iteratorposition];
        }

        return null;
    }
813500
public function getPhone(): string
    {
        $string = '';
        if ($this->userMeta->notification_phone !== null) {
            $phone = new UserMetaPhone($this->userMeta->notification_phone);
            $string = $phone->country . $phone->number;
        }
        return $string;
    }
360431
public function key()
	{
		$pageSize=$this->_dataProvider->getPagination()->getPageSize();
		return $this->_currentPage*$pageSize+$this->_currentIndex;
	}
922628
protected function getKeyFromInput() {
        $Model = $this->Model;

        $key = $this->model->getKeyName();
        $id = Input::get($key);

        return $id;
    }
195387
@SuppressWarnings("unused")
    public String getNumber() {
        Phonenumber.PhoneNumber phoneNumber = getPhoneNumber();

        if (phoneNumber == null) {
            return null;
        }

        return mPhoneUtil.format(phoneNumber, PhoneNumberUtil.PhoneNumberFormat.E164);
    }
399882
public function getKey()
    {
        $pk = $this->getPk();
        if (is_string($pk) && array_key_exists($pk, $this->data)) {
            return $this->data[$pk];
        }

        return;
    }
1182140
public function key()
    {
        if (is_null($this->ext)) {
            $this->ext = $this->generateExt();
        }
        return $this->ext;
    }
232142
public function getKeyPress()
    {
        $this->disableShowInput();
        $this->disableRequireReturn();

        $input = null;
        while (1) {
            $input = fread(STDIN, 10000);
            break;
        }

        $this->enableShowInput();
        $this->enableRequireReturn();

        $specialKey = $this->detectSpecialKey($input);

        return $specialKey ? $specialKey : (string)$input;
    }
646893
private function getHandle()
    {
        if (null === $this->handle) {
            if (false === ($this->handle = @fopen($this->file, 'rb'))) {
                $error = error_get_last();

                throw new RuntimeException($error['message']);
            }
        }

        return $this->handle;
    }
564773
protected function getHandler()
    {
        $handler = $this->getConfig('unauthorizedHandler');
        if (!is_array($handler)) {
            $handler = [
                'className' => $handler,
            ];
        }
        if (!isset($handler['className'])) {
            throw new RuntimeException('Missing `className` key from handler config.');
        }

        return HandlerFactory::create($handler['className']);
    }