Stores the dictionary for generating 'Lorem ipsum.

..' text

author etessore
version 1.0.0
package classes

 Methods

Builds the dictionary

__construct() 

Adds the given $word to the current set

add_word(string $word) : \GeneratorDictionary
Inherited
inherited_from \GeneratorDictionary::add_word()

Parameters

$word

string

the word

Returns

\GeneratorDictionary$this for chainability

Retrieves all the usable words of this dictionary

get_all_words() : \the
Inherited
inherited_from \GeneratorDictionary::get_all_words()

Returns

\thefull set of words

Retrieves the number of usable words in this dictionary

number_of_words() : \the
Inherited
inherited_from \GeneratorDictionary::number_of_words()

Returns

\thenumber of words in the current dictionary

Removes the given words from the current set

remove_word(string $word) : \GeneratorDictionary
Inherited
inherited_from \GeneratorDictionary::remove_word()

Parameters

$word

string

the word

Returns

\GeneratorDictionary$this for chainability

 Properties

 

the number of usable words

$count : int
Inherited
inherited_from \GeneratorDictionary::$$count
 

a list of usable words

$words : array
Inherited
inherited_from \GeneratorDictionary::$$words