range() public static méthode

public static range ( $value, $min, $max, $message = '' )
 /**
  * @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;
 }
 /**
  * @param UniquenessCheckerInterface $uniquenessChecker
  * @param int $pinLength
  *
  * @throws \InvalidArgumentException
  */
 public function __construct(UniquenessCheckerInterface $uniquenessChecker, $pinLength)
 {
     Assert::integer($pinLength, 'The value of pin length has to be an integer.');
     Assert::range($pinLength, 1, 9, 'The value of pin length has to be in range between 1 to 9.');
     $this->pinLength = $pinLength;
     $this->uniquenessChecker = $uniquenessChecker;
 }