Glossary

Extends \ArrayObject

The glossary is a collection containing a collection of terms and uses that were discovered during the discovery phase.

The key of this collection is the term that was discovered and the value is an array of locations where the term was used.

The array of locations consists of a filename as key and an array with the linenumbers where the term occurred.

Example:

array(1) { ["term"]=> array(1) { ["filename"]=> array(3) { [0]=> int(10) [1]=> int(14) [2]=> int(20) } } }

package

Default

Methods

Adds a glossary term to the collection.

addTerm(string $term, string $filename, integer $line_number) : void

Arguments

$term

string

$filename

string

$line_number

integer