PHP Class GraphAware\Reco4PHP\Result\PartialScore

Afficher le fichier Open project: graphaware/reco4php

Protected Properties

Свойство Type Description
$reasons Reason[]
$value float

Méthodes publiques

Méthode Description
__construct ( float $value, mixed $reason = null )
add ( float $value, $reaon = null )
getReasons ( ) : Reason[]
getValue ( ) : float
setNewValue ( float $value, array $details = [] )

Private Methods

Méthode Description
addReason ( $value, $detail = null )

Method Details

__construct() public méthode

public __construct ( float $value, mixed $reason = null )
$value float
$reason mixed

add() public méthode

public add ( float $value, $reaon = null )
$value float

getReasons() public méthode

public getReasons ( ) : Reason[]
Résultat Reason[]

getValue() public méthode

public getValue ( ) : float
Résultat float

setNewValue() public méthode

public setNewValue ( float $value, array $details = [] )
$value float
$details array

Property Details

$reasons protected_oe property

protected Reason[],GraphAware\Reco4PHP\Result $reasons
Résultat Reason[]

$value protected_oe property

protected float $value
Résultat float