getExplodedText()
보호된 메소드
Depending on the $maxNbChars, returns a random valid looking text. The algorithm
generates a weighted table with the specified number of words as the index and the
possible following words as the value.
public realText ( integer $maxNbChars = 200, integer $indexSize = 2 ) : string |
$maxNbChars |
integer |
Maximum number of characters the text should contain (minimum: 10) |
$indexSize |
integer |
Determines how many words are considered for the generation of the next word.
The minimum is 1, and it produces the higher level of randomness, although the
generated text usually doesn't make sense. Higher index sizes (up to 5)
produce more correct text, at the price of less randomness. |
리턴 |
string |
|
$baseText 보호되어 있는 정적으로 프로퍼티
protected static $baseText |
$explodedText 보호되어 있는 프로퍼티
$textStartsWithUppercase 보호되어 있는 정적으로 프로퍼티
protected static $textStartsWithUppercase |