src/YearMonthRange.php
public function contains(YearMonth $yearMonth) : bool
    {
        return $yearMonth->isAfterOrEqualTo($this->start) && $yearMonth->isBeforeOrEqualTo($this->end);
    }
public function contains(YearMonth $yearMonth) : bool
    {
        return $yearMonth->isAfterOrEqualTo($this->start) && $yearMonth->isBeforeOrEqualTo($this->end);
    }
public function contains ( YearMonth $ yearMonth ) : bool { return $ yearMonth -> isAfterOrEqualTo ( $ this -> start ) && $ yearMonth -> isBeforeOrEqualTo ( $ this -> end ) ; }
Returns whether this YearMonthRange contains the given year-month.

@param YearMonth $yearMonth The year-month to check.

@return bool True if this range contains the given year-month, false otherwise.
Returns whether this YearMonthRange contains the given year - month .