Question
setMaxAttempts(null|int $attempts)
Sets the maximum number of attempts. Null means an unlimited number of attempts.
Parameters null|int $attempts Return Value Question The current instance Exceptions InvalidArgumentException In case the number of attempts is invalid.