public function divide($number): Utility
    {
        $divisible = new static($number);

        if ($divisible->value() == 0 || $this->number == 0) {
            throw new DivisionByZeroError();
        }

        $value = $this->number / $divisible->value();

        return new static($value);
    }
public function divide($number): Utility
    {
        $divisible = new static($number);

        if ($divisible->value() == 0 || $this->number == 0) {
            throw new DivisionByZeroError();
        }

        $value = $this->number / $divisible->value();

        return new static($value);
    }
public function divide ( $ number ) : Utility { $ divisible = new static ( $ number ) ; if ( $ divisible -> value ( ) == 0 || $ this -> number == 0 ) { throw new DivisionByZeroError ( ) ; } $ value = $ this -> number / $ divisible -> value ( ) ; return new static ( $ value ) ; }
Divide the number by the number

@param $number

@return Utility
@throws NonNumericValueException
@throws \DivisionByZeroError
Divide the number by the number