Money\Money::compareTo PHP Méthode

compareTo() private méthode

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