public function getMessageBody()
    {
        $data = array(
            "registration_id" => $this->identifier,
            "collapse_key"    => $this->collapseKey,
            "data.message"    => $this->message,
        );
        if (!empty($this->data)) {
            $data = array_merge($data, $this->data);
        }

        return $data;
    }
public function getMessageBody()
    {
        $data = array(
            "registration_id" => $this->identifier,
            "collapse_key"    => $this->collapseKey,
            "data.message"    => $this->message,
        );
        if (!empty($this->data)) {
            $data = array_merge($data, $this->data);
        }

        return $data;
    }
public function getMessageBody ( ) { $ data = array ( "registration_id" => $ this -> identifier , "collapse_key" => $ this -> collapseKey , "data.message" => $ this -> message , ) ; if ( ! empty ( $ this -> data ) ) { $ data = array_merge ( $ data , $ this -> data ) ; } return $ data ; }
Gets the message body to send
This is primarily used in C2DM

@return array
Gets the message body to send This is primarily used in C2DM