public function getSummary()
    {
        $summary = [];

        $name = $this->getName();
        $message = $this->getMessage();

        if ($name !== $message) {
            $summary['name'] = $name;
        }

        $summary['message'] = $message;

        $summary['severity'] = $this->getSeverity();

        return array_filter($summary);
    }
public function getSummary()
    {
        $summary = [];

        $name = $this->getName();
        $message = $this->getMessage();

        if ($name !== $message) {
            $summary['name'] = $name;
        }

        $summary['message'] = $message;

        $summary['severity'] = $this->getSeverity();

        return array_filter($summary);
    }
public function getSummary ( ) { $ summary = [ ] ; $ name = $ this -> getName ( ) ; $ message = $ this -> getMessage ( ) ; if ( $ name !== $ message ) { $ summary [ 'name' ] = $ name ; } $ summary [ 'message' ] = $ message ; $ summary [ 'severity' ] = $ this -> getSeverity ( ) ; return array_filter ( $ summary ) ; }
Get the report summary.

@return string[]
Get the report summary .