PHP Class TextAnalysis\Queries\QueryAbstractFactory

Author: yooper (yooper)
Afficher le fichier Open project: yooper/php-text-analysis Class Usage Examples

Protected Properties

Свойство Type Description
$queryString The original string passed into factory method

Méthodes publiques

Méthode Description
factory ( string $queryString ) : QueryAbstractFactory
getQuery ( ) : array
getQueryString ( ) : string
queryIndex ( InvertedIndex $invertedIndex ) Each query type is going to interact with the inverted index in its own way

Méthodes protégées

Méthode Description
__construct ( string $queryString ) The query string passed in

Method Details

__construct() protected méthode

The query string passed in
protected __construct ( string $queryString )
$queryString string

factory() public static méthode

public static factory ( string $queryString ) : QueryAbstractFactory
$queryString string
Résultat QueryAbstractFactory

getQuery() abstract public méthode

abstract public getQuery ( ) : array
Résultat array

getQueryString() public méthode

public getQueryString ( ) : string
Résultat string

queryIndex() abstract public méthode

Each query type is going to interact with the inverted index in its own way
abstract public queryIndex ( InvertedIndex $invertedIndex )
$invertedIndex TextAnalysis\Indexes\InvertedIndex

Property Details

$queryString protected_oe property

The original string passed into factory method
protected $queryString