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);
    }