public function getType($asConstant = false)
    {
        $type = $this->lib->getNumberType($this->getPhoneNumberInstance());

        if ($asConstant) {
            return $type;
        }

        $stringType = Arr::get(static::parseTypesAsStrings($type), 0);

        return $stringType ? strtolower($stringType) : null;
    }
public function getType($asConstant = false)
    {
        $type = $this->lib->getNumberType($this->getPhoneNumberInstance());

        if ($asConstant) {
            return $type;
        }

        $stringType = Arr::get(static::parseTypesAsStrings($type), 0);

        return $stringType ? strtolower($stringType) : null;
    }
public function getType ( $ asConstant = false ) { $ type = $ this -> lib -> getNumberType ( $ this -> getPhoneNumberInstance ( ) ) ; if ( $ asConstant ) { return $ type ; } $ stringType = Arr :: get ( static :: parseTypesAsStrings ( $ type ) , 0 ) ; return $ stringType ? strtolower ( $ stringType ) : null ; }
Get the phone number's type.

@param bool $asConstant
@return string|int|null
Get the phone number s type .