public function setMaxAttemptsPerDay($maxAttemptsPerDay)
    {
        if ($maxAttemptsPerDay > $this->maxAttempts) {
            //we can't try more times per day than the maximum allowed attempts defined
            $this->maxAttemptsPerDay = $this->maxAttempts;
        }

        $this->maxAttemptsPerDay = $maxAttemptsPerDay;
    }