src/Uuid.php
public function getInteger()
    {
        if (!self::hasBigNumber()) {
            throw new Exception\UnsatisfiedDependencyException(
                'Cannot call ' . __METHOD__ . ' without support for large '
                . 'integers, since integer is an unsigned '
                . '128-bit integer; Moontoast\Math\BigNumber is required'
                . '; consider calling getHex instead'
            );
        }

        $number = \Moontoast\Math\BigNumber::baseConvert(
            $this->getHex(),
            16,
            10
        );

        return new \Moontoast\Math\BigNumber($number);
    }
public function getInteger()
    {
        if (!self::hasBigNumber()) {
            throw new Exception\UnsatisfiedDependencyException(
                'Cannot call ' . __METHOD__ . ' without support for large '
                . 'integers, since integer is an unsigned '
                . '128-bit integer; Moontoast\Math\BigNumber is required'
                . '; consider calling getHex instead'
            );
        }

        $number = \Moontoast\Math\BigNumber::baseConvert(
            $this->getHex(),
            16,
            10
        );

        return new \Moontoast\Math\BigNumber($number);
    }
public function getInteger ( ) { if ( ! self :: hasBigNumber ( ) ) { throw new Exception \ UnsatisfiedDependencyException ( 'Cannot call ' . __METHOD__ . ' without support for large ' . 'integers, since integer is an unsigned ' . '128-bit integer; Moontoast\Math\BigNumber is required' . '; consider calling getHex instead' ) ; } $ number = \ Moontoast \ Math \ BigNumber :: baseConvert ( $ this -> getHex ( ) , 16 , 10 ) ; return new \ Moontoast \ Math \ BigNumber ( $ number ) ; }
Returns the integer value of the UUID, represented as a BigNumber

@return \Moontoast\Math\BigNumber BigNumber representation of the unsigned 128-bit integer value
@throws Exception\UnsatisfiedDependencyException if Moontoast\Math\BigNumber is not present
Returns the integer value of the UUID represented as a BigNumber