public function getReportMessages()
    {
        $messages = array();
        /** @var \common_report_Report $subReport */
        foreach ($this->report as $subReport) {
            $errors = [];
            if ($subReport->containsError()) {
                $errors = $subReport->getErrors();
            }
            $messages[] = array(
                'message' => $subReport->getMessage(),
                'details' => $errors
            );
        }
        return $messages;
    }