Piwik\Report\ReportWidgetFactory::__construct PHP Method

__construct() public method

Generates a new report widget factory.
public __construct ( Report $report )
$report Piwik\Plugin\Report A report instance, widgets will be created based on the data provided by this report.
    public function __construct(Report $report)
    {
        $this->report = $report;
    }