PHP Class GraphAware\Reco4PHP\Result\PartialScore

Show file Open project: graphaware/reco4php

Protected Properties

Property Type Description
$reasons Reason[]
$value float

Public Methods

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

Private Methods

Method Description
addReason ( $value, $detail = null )

Method Details

__construct() public method

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

add() public method

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

getReasons() public method

public getReasons ( ) : Reason[]
return Reason[]

getValue() public method

public getValue ( ) : float
return float

setNewValue() public method

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

Property Details

$reasons protected property

protected Reason[],GraphAware\Reco4PHP\Result $reasons
return Reason[]

$value protected property

protected float $value
return float