src/Api/MessageThread.php
public function messages(int $count = 200) : array
    {
        $messages = [];

        $messageFields = $this->info($count, true);

        foreach ($messageFields->threadEvents as $message) {
            $messages[] = new Message($this->client, $message->messageEventDetail, $this);
        }

        return $messages;
    }
public function messages(int $count = 200) : array
    {
        $messages = [];

        $messageFields = $this->info($count, true);

        foreach ($messageFields->threadEvents as $message) {
            $messages[] = new Message($this->client, $message->messageEventDetail, $this);
        }

        return $messages;
    }
public function messages ( int $ count = 200 ) : array { $ messages = [ ] ; $ messageFields = $ this -> info ( $ count , true ) ; foreach ( $ messageFields -> threadEvents as $ message ) { $ messages [ ] = new Message ( $ this -> client , $ message -> messageEventDetail , $ this ) ; } return $ messages ; }
Get all the messages.

@param integer $count Amount of messages to send.
@return array Array of Api\Message.
Get all the messages .