private function getRoot(NumberBase $source, NumberBase $target)
    {
        if ($source->hasStringConflict() || $target->hasStringConflict()) {
            throw new InvalidNumberBaseException('Number bases do not support string presentation');
        }

        $root = $source->findCommonRadixRoot($target);

        if ($root === false) {
            throw new InvalidNumberBaseException('No common root exists between number bases');
        }

        return $root;
    }
private function getRoot(NumberBase $source, NumberBase $target)
    {
        if ($source->hasStringConflict() || $target->hasStringConflict()) {
            throw new InvalidNumberBaseException('Number bases do not support string presentation');
        }

        $root = $source->findCommonRadixRoot($target);

        if ($root === false) {
            throw new InvalidNumberBaseException('No common root exists between number bases');
        }

        return $root;
    }
private function getRoot ( NumberBase $ source , NumberBase $ target ) { if ( $ source -> hasStringConflict ( ) || $ target -> hasStringConflict ( ) ) { throw new InvalidNumberBaseException ( 'Number bases do not support string presentation' ) ; } $ root = $ source -> findCommonRadixRoot ( $ target ) ; if ( $ root === false ) { throw new InvalidNumberBaseException ( 'No common root exists between number bases' ) ; } return $ root ; }
Determines the common root for the number bases.
@param NumberBase $source Number base used by the provided numbers
@param NumberBase $target Number base used by the returned numbers
@return int The common root for the number bases
@throws InvalidNumberBaseException If the number bases are not supported
Determines the common root for the number bases .