GraphAware\Reco4PHP\Executor\RecommendationExecutor::processRecommendation PHP Метод

processRecommendation() публичный Метод

public processRecommendation ( GraphAware\Common\Type\Node $input, GraphAware\Reco4PHP\Engine\RecommendationEngine $engine, GraphAware\Reco4PHP\Context\Context $context )
$input GraphAware\Common\Type\Node
$engine GraphAware\Reco4PHP\Engine\RecommendationEngine
$context GraphAware\Reco4PHP\Context\Context
    public function processRecommendation(Node $input, RecommendationEngine $engine, Context $context)
    {
        $recommendations = $this->doDiscovery($input, $engine, $context);
        $this->doPostProcess($input, $recommendations, $engine);
        $recommendations->sort();
        return $recommendations;
    }

Usage Example

 /**
  * @param \GraphAware\Common\Type\NodeInterface $input
  *
  * @return \GraphAware\Reco4PHP\Result\Recommendations
  */
 public final function recommend(NodeInterface $input)
 {
     $recommendations = $this->recommendationExecutor->processRecommendation($input, $this);
     return $recommendations;
 }
All Usage Examples Of GraphAware\Reco4PHP\Executor\RecommendationExecutor::processRecommendation