Ejemplo n.º 1
0
 /**
  * Method sets log2 number of iterations for password stretching.
  *
  * @param int $hashCount log2 number of iterations for password stretching to set
  * @see HASH_COUNT
  * @see $hashCount
  * @see getHashCount()
  */
 public function setHashCount($hashCount = NULL)
 {
     self::$hashCount = !is_NULL($hashCount) && is_int($hashCount) && $hashCount >= $this->getMinHashCount() && $hashCount <= $this->getMaxHashCount() ? $hashCount : self::HASH_COUNT;
 }