src/Chippyash/Math/Type/Traits/ArbitrateTwoTypes.php
private function getTypePairing(NumericTypeInterface $a, NumericTypeInterface $b)
    {
        $search = [
            'Chippyash\Type\Number\Rational\\',
            'Chippyash\Type\Number\Complex\\',
            'Chippyash\Type\Number\\',
            'Type'
        ];
        $replace = ['', '', '', ''];
        $tA = strtolower(str_replace($search, $replace, get_class($a)));
        $tB = strtolower(str_replace($search, $replace, get_class($b)));

        return "{$tA}:{$tB}";
    }
private function getTypePairing(NumericTypeInterface $a, NumericTypeInterface $b)
    {
        $search = [
            'Chippyash\Type\Number\Rational\\',
            'Chippyash\Type\Number\Complex\\',
            'Chippyash\Type\Number\\',
            'Type'
        ];
        $replace = ['', '', '', ''];
        $tA = strtolower(str_replace($search, $replace, get_class($a)));
        $tB = strtolower(str_replace($search, $replace, get_class($b)));

        return "{$tA}:{$tB}";
    }
private function getTypePairing ( NumericTypeInterface $ a , NumericTypeInterface $ b ) { $ search = [ 'Chippyash\Type\Number\Rational\\' , 'Chippyash\Type\Number\Complex\\' , 'Chippyash\Type\Number\\' , 'Type' ] ; $ replace = [ '' , '' , '' , '' ] ; $ tA = strtolower ( str_replace ( $ search , $ replace , get_class ( $ a ) ) ) ; $ tB = strtolower ( str_replace ( $ search , $ replace , get_class ( $ b ) ) ) ; return "{$tA}:{$tB}" ; }
Work out the type of the number pairs

@param NumericTypeInterface $a first operand
@param NumericTypeInterface $b second operand

@return string
Work out the type of the number pairs