Skip to content

Commit e70dbf6

Browse files
committed
doc
1 parent c027ef2 commit e70dbf6

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

src/webd/language/SpamSum.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,30 @@ public static function Hash($string) {
3636
protected $left;
3737
protected $right;
3838

39+
/**
40+
* Set a different hash length
41+
* min = 1, default = 64
42+
*
43+
* @param type $l
44+
*/
3945
public function SetHashLength($l) {
4046
$this->SPAMSUM_LENGTH = $l;
4147
}
4248

49+
/**
50+
* Set the number of letters to use to create the hash
51+
* min = 2, max = 64, default = 64 (base64)
52+
* @param type $l
53+
*/
4354
public function SetLetters($l) {
4455
$this->LETTERS = $l;
4556
}
4657

58+
/**
59+
* Manually set the minimum block size
60+
* min = 1, default = 3
61+
* @param type $s
62+
*/
4763
public function SetMinBlocksize($s) {
4864
$this->MIN_BLOCKSIZE = $s;
4965
}

0 commit comments

Comments
 (0)