PHP 클래스 GraphAware\Reco4PHP\Result\Recommendations

파일 보기 프로젝트 열기: graphaware/reco4php 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$context GraphAware\Reco4PHP\Context\Context
$recommendations Recommendation[]

공개 메소드들

메소드 설명
__construct ( GraphAware\Reco4PHP\Context\Context $context )
add ( GraphAware\Common\Type\Node $item, string $name, SingleScore $singleScore )
get ( $position ) : Recommendation
getContext ( ) : GraphAware\Reco4PHP\Context\Context
getItemBy ( string $key, mixed $value ) : Recommendation | null
getItemById ( integer $id ) : Recommendation | null
getItems ( $size = null ) : array
getOrCreate ( GraphAware\Common\Type\Node $item ) : Recommendation
merge ( Recommendations $recommendations )
remove ( Recommendation $recommendation )
size ( ) : integer
sort ( )

메소드 상세

__construct() 공개 메소드

public __construct ( GraphAware\Reco4PHP\Context\Context $context )
$context GraphAware\Reco4PHP\Context\Context

add() 공개 메소드

public add ( GraphAware\Common\Type\Node $item, string $name, SingleScore $singleScore )
$item GraphAware\Common\Type\Node
$name string
$singleScore SingleScore

get() 공개 메소드

public get ( $position ) : Recommendation
$position
리턴 Recommendation

getContext() 공개 메소드

public getContext ( ) : GraphAware\Reco4PHP\Context\Context
리턴 GraphAware\Reco4PHP\Context\Context

getItemBy() 공개 메소드

public getItemBy ( string $key, mixed $value ) : Recommendation | null
$key string
$value mixed
리턴 Recommendation | null

getItemById() 공개 메소드

public getItemById ( integer $id ) : Recommendation | null
$id integer
리턴 Recommendation | null

getItems() 공개 메소드

public getItems ( $size = null ) : array
리턴 array

getOrCreate() 공개 메소드

public getOrCreate ( GraphAware\Common\Type\Node $item ) : Recommendation
$item GraphAware\Common\Type\Node
리턴 Recommendation

merge() 공개 메소드

public merge ( Recommendations $recommendations )
$recommendations Recommendations

remove() 공개 메소드

public remove ( Recommendation $recommendation )
$recommendation Recommendation

size() 공개 메소드

public size ( ) : integer
리턴 integer

sort() 공개 메소드

public sort ( )

프로퍼티 상세

$context 보호되어 있는 프로퍼티

protected Context,GraphAware\Reco4PHP\Context $context
리턴 GraphAware\Reco4PHP\Context\Context

$recommendations 보호되어 있는 프로퍼티

protected Recommendation[],GraphAware\Reco4PHP\Result $recommendations
리턴 Recommendation[]