public function getHeaders()
    {
        if (!isset($this->properties[MessageProperties::KEY_HEADERS])) {
            $this->properties[MessageProperties::KEY_HEADERS] = [];
        }

        return $this->properties[MessageProperties::KEY_HEADERS];
    }
public function getHeaders()
    {
        if (!isset($this->properties[MessageProperties::KEY_HEADERS])) {
            $this->properties[MessageProperties::KEY_HEADERS] = [];
        }

        return $this->properties[MessageProperties::KEY_HEADERS];
    }
public function getHeaders ( ) { if ( ! isset ( $ this -> properties [ MessageProperties :: KEY_HEADERS ] ) ) { $ this -> properties [ MessageProperties :: KEY_HEADERS ] = [ ] ; } return $ this -> properties [ MessageProperties :: KEY_HEADERS ] ; }
Get the headers of the message.

@return array An array of key value pairs associated with the message.
Get the headers of the message .