Returns an array of brief information about each message in the current mailbox.

Structure return array arrays
$array = [
[ 'id'=>4, 'info'=>'brief info' ]
[ 'id'=>5, 'info'=>'brief info' ]
]

@return array
172246
public function getBriefInfoMessages()
    {
        $array = imap_headers($this->imap);
        $newArray = [];
        foreach ($array as $key => $string) {
            $newArray[] = ['id'=>$key+1, 'info' => $string];
        };
        return $newArray;
    }
773411
public function getMessages()
	{
		return array_merge($this->fatals, $this->errors, $this->warnings, $this->notices);
	}
829665
public function toArray()
    {
        return [
            'message' => $this->getMessageException(),
            'errors' => $this->getErrors(),
            'debugCode' => $this->getDebugCode(),
            'details' => $this->getDetails(),
            'routeBack' => redirect()->back()->getTargetUrl()
        ];
    }
36007
public function getMessages()
    {
        $messages = $this->messages;
        foreach ($this->getCompositeWidgets() as $widget) {
            $messages = array_merge($messages, $widget->getMessages());
        }

        return $messages;
    }
1069674
public function getMessages()
    {
        $messages = parent::getMessages();

        if ($this->model !== null) {
            foreach ($this->model as $row) {
                foreach ($this->columns as $column) {
                    $messages = array_merge(
                        $messages,
                        $column->getMessages($row)
                    );
                }

                foreach ($this->spanning_columns as $column) {
                    $messages = array_merge(
                        $messages,
                        $column->getMessages($row)
                    );
                }
            }

            foreach ($this->extra_rows as $row) {
                if ($row instanceof SwatTableViewWidgetRow) {
                    $messages = array_merge($messages, $row->getMessages());
                }
            }
        }

        return $messages;
    }
935819
public function getParams(): array
    {
        $params = [
            'chat_id' => $this->chatId,
            'voice' => $this->voice,
        ];

        $params = array_merge($params, $this->buildJsonAttributes([
            'duration' => $this->duration,
            'disable_notification' => $this->disableNotification,
            'reply_to_message_id' => $this->replyToMessageId
        ]));

        return $params;
    }
587512
public function getMessage()
    {
        $result = [];

        $messages = (isset($this->indexReverse[self::MESSAGE])) ? $this->indexReverse[self::MESSAGE] : [];

        foreach ($messages as $index) {
            $result[] = $this->getChild($index);
        }

        return $result;
    }
771009
public function getMessages()
    {
        $message = [];
        foreach ($this->errorList as $item) {
            $message[] = $item->getMessage();
        }

        return $message;
    }
418387
protected function buttonMessageToArray()
    {
        $message = [];
        $message['recipient'] = $this->recipient;
        $message['notification_type'] = $this->notificationType;
        $message['message']['attachment']['type'] = 'template';
        $message['message']['attachment']['payload']['template_type'] = 'button';
        $message['message']['attachment']['payload']['text'] = $this->text;
        $message['message']['attachment']['payload']['buttons'] = $this->buttons;

        return $message;
    }
963322
public function toArray(): array
    {
        return [
            'name' => $this->name,
            'text' => $this->text,
            'style' => $this->style,
            'type' => $this->type,
            'value' => $this->value,
            'confirm' => $this->confirm ? $this->confirm->toArray() : null,
        ];
    }
274818
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;
    }
946339
public function toArray()
    {
        $messages = [];
        $receivers = [];

        /** @var ShortMessage $shortMessage */
        foreach ($this->items as $shortMessage) {
            $messages[] = $shortMessage->body();
            $receivers[] = $shortMessage->receiversString();
        }

        return [
            'Msisdns'        => implode('|', $receivers),
            'Messages'       => implode('|', $messages),
        ];
    }
79974
public function getMessages()
    {
        $this->getBotId();

        $messageContent = $this->getMessageContent($this->event->get('id'));

        $message = new IncomingMessage($messageContent->text, $messageContent->roomId, $messageContent->personId, $messageContent);

        if ($this->getBotId() === $messageContent->personId) {
            $message->setIsFromBot(true);
        }

        return [$message];
    }
362598
protected function getRespondentMailfields()
    {
        if ($this->respondent) {
            $result = array();
            $result['bcc']          = $this->mailFields['project_bcc'];
            $result['email']        = $this->respondent->getEmailAddress();
            $result['from']         = '';
            $result['first_name']   = $this->respondent->getFirstName();
            $result['full_name']    = $this->respondent->getFullName();
            $result['greeting']     = $this->respondent->getGreeting();
            $result['last_name']    = $this->respondent->getLastName();
            $result['name']         = $this->respondent->getName();
        } else {
            $result = array(
                'email'     => '',
                'from'      => '',
                'first_name'=> '',
                'full_name' => '',
                'greeting'  => '',
                'last_name' => '',
                'name'      => ''
            );
        }

        $result['reply_to']       = $result['from'];
        $result['to']             = $result['email'];
        $result['reset_ask']      = '';
        if ($this->mailFields['organization_login_url']) {
            $result['reset_ask']      = $this->mailFields['organization_login_url'] . '/index/resetpassword';
        }
        return $result;
    }
65219
public function postbackMessages()
    {
        $result = [];
        foreach ($this->entries as $entry) {
            foreach ($entry->messages as $entryMessage) {
                if ($entryMessage->isPostback) {
                    $result[] = $entryMessage;
                }
            }
        }
        return collect($result);
    }
1088770
public function toArray()
    {
        $result = [];
        $result['id']            = $this->id;
        $result['toUserName']    = $this->toUserName;
        $result['fromUserName']  = $this->fromUserName;
        $result['createTime']    = $this->createTime;
        $result['msgType']       = $this->msgType;
        return $result;
    }
1191987
public function getMailboxes()
    {
        $uri = 'mailboxes';
        $response = $this->client->getEndpoint()->get($uri);

        $mailboxes = [];
        foreach (\GuzzleHttp\json_decode($response->getBody()) as $mailbox) {
            $mailboxes[] = new Mailbox($mailbox);
        }

        return $mailboxes;
    }