Money\Money::compareTo PHP 메소드

compareTo() 개인적인 메소드

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
리턴 integer
    private function compareTo(Money $other)
    {
        $this->assertSameCurrencyAs($other);
        return bccomp($this->amount, $other->amount, self::SCALE);
    }