PHP Class TextAnalysis\Queries\QueryAbstractFactory

Author: yooper (yooper)
Mostra file Open project: yooper/php-text-analysis Class Usage Examples

Protected Properties

Property Type Description
$queryString The original string passed into factory method

Public Methods

Method 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

Protected Methods

Method Description
__construct ( string $queryString ) The query string passed in

Method Details

__construct() protected method

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

factory() public static method

public static factory ( string $queryString ) : QueryAbstractFactory
$queryString string
return QueryAbstractFactory

getQuery() abstract public method

abstract public getQuery ( ) : array
return array

getQueryString() public method

public getQueryString ( ) : string
return string

queryIndex() abstract public method

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