src/Ten24/Component/Formatter/PhoneNumberFormatter.php
public function format()
    {
        if (strlen($this->phoneNumber) >= 7)
        {
            return sprintf($this->format,
                $this->getCountryCode(),
                $this->getAreaCode(),
                $this->getPrefix(),
                $this->getLineNumber());
        }

        return null;
    }
public function format()
    {
        if (strlen($this->phoneNumber) >= 7)
        {
            return sprintf($this->format,
                $this->getCountryCode(),
                $this->getAreaCode(),
                $this->getPrefix(),
                $this->getLineNumber());
        }

        return null;
    }
public function format ( ) { if ( strlen ( $ this -> phoneNumber ) >= 7 ) { return sprintf ( $ this -> format , $ this -> getCountryCode ( ) , $ this -> getAreaCode ( ) , $ this -> getPrefix ( ) , $ this -> getLineNumber ( ) ) ; } return null ; }
Get formatted phone number for display
This assumes a flattened format like 11235551234

@return string
Get formatted phone number for display This assumes a flattened format like 11235551234