src/Money.php
public function mod(Money $divisor)
    {
        $this->assertSameCurrency($divisor);

        return new self($this->getCalculator()->mod($this->amount, $divisor->amount), $this->currency);
    }
public function mod(Money $divisor)
    {
        $this->assertSameCurrency($divisor);

        return new self($this->getCalculator()->mod($this->amount, $divisor->amount), $this->currency);
    }
public function mod ( Money $ divisor ) { $ this -> assertSameCurrency ( $ divisor ) ; return new self ( $ this -> getCalculator ( ) -> mod ( $ this -> amount , $ divisor -> amount ) , $ this -> currency ) ; }
Returns a new Money object that represents
the remainder after dividing the value by
the given factor.

@param Money $divisor

@return Money
Returns a new Money object that represents the remainder after dividing the value by the given factor .