Money\Money::compareTo PHP Method

compareTo() private method

Returns an integer less than, equal to, or greater than zero if the value of this object is considered to be respectively less than, equal to, or greater than the other
private compareTo ( Money $other ) : integer
$other Money
return integer
    private function compareTo(Money $other)
    {
        $this->assertSameCurrencyAs($other);
        return bccomp($this->amount, $other->amount, self::SCALE);
    }