Please solve the programming task below using a self-contained code snippet in a markdown code block.

Given an array of integers nums, find the maximum length of a subarray where the product of all its elements is positive.
A subarray of an array is a consecutive sequence of zero or more values taken out of that array.
Return the maximum length of a subarray with positive product.
 
Please complete the following python code precisely:
```python
class Solution:
    def getMaxLen(self, nums: List[int]) -> int:
```