tests for Nominatim::TokenList

This commit is contained in:
Marc Tobias Metten
2018-07-19 02:31:54 +02:00
committed by marc tobias
parent d68996127d
commit 0892eab1d3
2 changed files with 127 additions and 0 deletions

View File

@@ -32,6 +32,17 @@ class TokenList
// List of list of tokens indexed by their word_token.
private $aTokens = array();
/**
* Return total number of tokens.
*
* @return Integer
*/
public function count()
{
return count($this->aTokens);
}
/**
* Check if there are tokens for the given token word.
*