src/Parser/IsoParsers.php
public static function yearMonth() : PatternParser
    {
        static $parser;

        if ($parser) {
            return $parser;
        }

        return $parser = (new PatternParserBuilder())
            ->appendCapturePattern(Year::PATTERN, Year::NAME)
            ->appendLiteral('-')
            ->appendCapturePattern(MonthOfYear::PATTERN, MonthOfYear::NAME)
            ->toParser();
    }
public static function yearMonth() : PatternParser
    {
        static $parser;

        if ($parser) {
            return $parser;
        }

        return $parser = (new PatternParserBuilder())
            ->appendCapturePattern(Year::PATTERN, Year::NAME)
            ->appendLiteral('-')
            ->appendCapturePattern(MonthOfYear::PATTERN, MonthOfYear::NAME)
            ->toParser();
    }
public static function yearMonth ( ) : PatternParser { static $ parser ; if ( $ parser ) { return $ parser ; } return $ parser = ( new PatternParserBuilder ( ) ) -> appendCapturePattern ( Year :: PATTERN , Year :: NAME ) -> appendLiteral ( '-' ) -> appendCapturePattern ( MonthOfYear :: PATTERN , MonthOfYear :: NAME ) -> toParser ( ) ; }
Returns a parser for a year-month such as `2014-12`.

@return PatternParser
Returns a parser for a year - month such as 2014 - 12 .