Month class refactoring

Refactoring of duplicated code
Is the number really can be zero? MAybe it's better to perform check if ($number < 1) ?