/**
* @param UniquenessCheckerInterface $uniquenessChecker
* @param int $tokenLength
*
* @throws \InvalidArgumentException
*/
public function __construct(UniquenessCheckerInterface $uniquenessChecker, $tokenLength)
{
Assert::integer($tokenLength, 'The value of token length has to be an integer.');
Assert::range($tokenLength, 1, 40, 'The value of token length has to be in range between 1 to 40.');
$this->tokenLength = $tokenLength;
$this->uniquenessChecker = $uniquenessChecker;
}