src/Month.php
public static function getAll() : array
    {
        $months = [];

        for ($month = Month::JANUARY; $month <= Month::DECEMBER; $month++) {
            $months[] = Month::get($month);
        }

        return $months;
    }
public static function getAll() : array
    {
        $months = [];

        for ($month = Month::JANUARY; $month <= Month::DECEMBER; $month++) {
            $months[] = Month::get($month);
        }

        return $months;
    }
public static function getAll ( ) : array { $ months = [ ] ; for ( $ month = Month :: JANUARY ; $ month <= Month :: DECEMBER ; $ month ++ ) { $ months [ ] = Month :: get ( $ month ) ; } return $ months ; }
Returns the twelve months of the year in an array.

@return Month[]
Returns the twelve months of the year in an array .