src/PhoneNumberUtil.php
protected function isNationalNumberSuffixOfTheOther(PhoneNumber $firstNumber, PhoneNumber $secondNumber)
    {
        $firstNumberNationalNumber = trim((string)$firstNumber->getNationalNumber());
        $secondNumberNationalNumber = trim((string)$secondNumber->getNationalNumber());
        return $this->stringEndsWithString($firstNumberNationalNumber, $secondNumberNationalNumber) ||
        $this->stringEndsWithString($secondNumberNationalNumber, $firstNumberNationalNumber);
    }
protected function isNationalNumberSuffixOfTheOther(PhoneNumber $firstNumber, PhoneNumber $secondNumber)
    {
        $firstNumberNationalNumber = trim((string)$firstNumber->getNationalNumber());
        $secondNumberNationalNumber = trim((string)$secondNumber->getNationalNumber());
        return $this->stringEndsWithString($firstNumberNationalNumber, $secondNumberNationalNumber) ||
        $this->stringEndsWithString($secondNumberNationalNumber, $firstNumberNationalNumber);
    }
protected function isNationalNumberSuffixOfTheOther ( PhoneNumber $ firstNumber , PhoneNumber $ secondNumber ) { $ firstNumberNationalNumber = trim ( ( string ) $ firstNumber -> getNationalNumber ( ) ) ; $ secondNumberNationalNumber = trim ( ( string ) $ secondNumber -> getNationalNumber ( ) ) ; return $ this -> stringEndsWithString ( $ firstNumberNationalNumber , $ secondNumberNationalNumber ) || $ this -> stringEndsWithString ( $ secondNumberNationalNumber , $ firstNumberNationalNumber ) ; }
Returns true when one national number is the suffix of the other or both are the same.
@param PhoneNumber $firstNumber
@param PhoneNumber $secondNumber
@return bool
Returns true when one national number is the suffix of the other or both are the same .