PHP Class GraphAware\Reco4PHP\Result\Recommendation

Afficher le fichier Open project: graphaware/reco4php Class Usage Examples

Protected Properties

Свойство Type Description
$item GraphAware\Common\Type\Node
$scores Score[]
$totalScore float

Méthodes publiques

Méthode Description
__construct ( GraphAware\Common\Type\Node $item ) Recommendation constructor.
addScore ( string $name, SingleScore $score )
addScores ( array $scores )
getScore ( string $key ) : Score
getScores ( ) : SingleScore[]
item ( ) : GraphAware\Common\Type\Node
totalScore ( ) : float

Private Methods

Méthode Description
getScoreOrCreate ( $name )

Method Details

__construct() public méthode

Recommendation constructor.
public __construct ( GraphAware\Common\Type\Node $item )
$item GraphAware\Common\Type\Node

addScore() public méthode

public addScore ( string $name, SingleScore $score )
$name string
$score SingleScore

addScores() public méthode

public addScores ( array $scores )
$scores array

getScore() public méthode

public getScore ( string $key ) : Score
$key string
Résultat Score

getScores() public méthode

public getScores ( ) : SingleScore[]
Résultat SingleScore[]

item() public méthode

public item ( ) : GraphAware\Common\Type\Node
Résultat GraphAware\Common\Type\Node

totalScore() public méthode

public totalScore ( ) : float
Résultat float

Property Details

$item protected_oe property

protected Node,GraphAware\Common\Type $item
Résultat GraphAware\Common\Type\Node

$scores protected_oe property

protected Score[],GraphAware\Reco4PHP\Result $scores
Résultat Score[]

$totalScore protected_oe property

protected float $totalScore
Résultat float