Skip to content
This repository has been archived by the owner on May 28, 2023. It is now read-only.

Dilemma, Problem and Resolution

Percy Mamedy edited this page Jun 7, 2016 · 1 revision

Dilemma

A Dilemma object will contain the original Problem object and a Resolution object. See structure.

The Dilemma Object is what's returned from the Analytics Engine getDilemma method.

$dilemma = $engine->getDilemma($problem);

Dilemma and Problem

//Check for Problem object in Dilemma
$dilemma->hasProblem();
//Get the Problem object from Dilemma
$problem = $dilemma->getProblem();

Dilemma and Resolution

//Check for Resolution object in Dilemma
$dilemma->hasResolution();
//Get Resolution object out of Dilemma
$resolution = $dilemma->getResolution();
Clone this wiki locally