function AcquiaLiftLearnReport::__construct in Acquia Lift Connector 7.2
Constructs an AcquiaLiftReport object
Parameters
PersonalizeAgentInterface $agent: The agent the report is for.
AcquiaLiftReportDataSourceInterface $report_data_src: The source for the report data.
File
- includes/
AcquiaLiftLearnReport.inc, line 74
Class
- AcquiaLiftLearnReport
- Class for Acquia Lift Learn Reports.
Code
function __construct(PersonalizeAgentInterface $agent, $options, AcquiaLiftLearnReportDataSourceInterface $report_data_src) {
$this->agent = $agent;
$confidence_measure = $options['confidence_measure'];
if ($confidence_measure < 0) {
$confidence_measure = 0;
}
if ($confidence_measure > 100) {
$confidence_measure = 100;
}
$this->confidence_measure = $confidence_measure;
$this->start_time = $options['start_time'];
$this->end_time = $options['end_time'];
$this->reportDataSrc = $report_data_src;
}