PHP Class GraphAware\Reco4PHP\Tests\Engine\OverrideDiscoveryEngine

Inheritance: extends TestDiscoveryEngine
Show file Open project: graphaware/reco4php Class Usage Examples

Public Methods

Method Description
buildScore ( GraphAware\Common\Type\Node $input, GraphAware\Common\Type\Node $item, GraphAware\Common\Result\Record $record, GraphAware\Reco4PHP\Context\Context $context ) : SingleScore
defaultScore ( ) : float
discoveryQuery ( GraphAware\Common\Type\Node $input, GraphAware\Reco4PHP\Context\Context $context ) : GraphAware\Common\Cypher\StatementInterface
idParamName ( ) : string
recoResultName ( ) : string
scoreResultName ( ) : string

Method Details

buildScore() public method

public buildScore ( GraphAware\Common\Type\Node $input, GraphAware\Common\Type\Node $item, GraphAware\Common\Result\Record $record, GraphAware\Reco4PHP\Context\Context $context ) : SingleScore
$input GraphAware\Common\Type\Node
$item GraphAware\Common\Type\Node
$record GraphAware\Common\Result\Record
$context GraphAware\Reco4PHP\Context\Context
return GraphAware\Reco4PHP\Result\SingleScore

defaultScore() public method

public defaultScore ( ) : float
return float

discoveryQuery() public method

public discoveryQuery ( GraphAware\Common\Type\Node $input, GraphAware\Reco4PHP\Context\Context $context ) : GraphAware\Common\Cypher\StatementInterface
$input GraphAware\Common\Type\Node
$context GraphAware\Reco4PHP\Context\Context
return GraphAware\Common\Cypher\StatementInterface

idParamName() public method

public idParamName ( ) : string
return string

recoResultName() public method

public recoResultName ( ) : string
return string

scoreResultName() public method

public scoreResultName ( ) : string
return string