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;
    }
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;
    }
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 ; }
Extract all report messages to simple array

@return array
Extract all report messages to simple array