GraphAware\Reco4PHP\Tests\Example\ExampleRecommenderService::recommendMovieForUserWithId PHP Method

recommendMovieForUserWithId() public method

public recommendMovieForUserWithId ( integer $id ) : Recommendations
$id integer
return GraphAware\Reco4PHP\Result\Recommendations
    public function recommendMovieForUserWithId($id)
    {
        $input = $this->service->findInputBy('User', 'id', $id);
        $recommendationEngine = $this->service->getRecommender("user_movie_reco");
        return $recommendationEngine->recommend($input, new SimpleContext());
    }