phaseToNumber static method

int phaseToNumber(
  1. MoonPhase phase
)

تحويل طور القمر إلى رقم (0-7)

Implementation

static int phaseToNumber(MoonPhase phase) {
  return phase.index;
}