Menu

## ImageMessageBuilder
in package
implements MessageBuilder

ImageMessageBuilder.php : 31

A builder class for image message.

### Interfaces, Classes and Traits

MessageBuilder
  The interface that has a responsibility to build message.

### Table of Contents

$message : array<string|int, mixed>
$originalContentUrl : string
$previewImageUrl : string
$quickReply : QuickReplyBuilder|null
$sender : SenderBuilder|null
__construct() : mixed
  ImageMessageBuilder constructor.
buildMessage() : array<string|int, mixed>
  Builds image message structure.

### Properties

#### $message

ImageMessageBuilder.php : 40
`private array<string|int, mixed> $message = []`

#### $originalContentUrl

ImageMessageBuilder.php : 34
`private string $originalContentUrl`

#### $previewImageUrl

ImageMessageBuilder.php : 37
`private string $previewImageUrl`

#### $quickReply

ImageMessageBuilder.php : 43
`private QuickReplyBuilder|null $quickReply`

#### $sender

ImageMessageBuilder.php : 46
`private SenderBuilder|null $sender`

### Methods

#### __construct()

ImageMessageBuilder.php : 56

ImageMessageBuilder constructor.

`public __construct(string $originalContentUrl, string $previewImageUrl[, QuickReplyBuilder|null $quickReply = null ][, SenderBuilder|null $sender = null ]) : mixed`

##### Parameters

$originalContentUrl : string
$previewImageUrl : string
$quickReply : QuickReplyBuilder|null = null
$sender : SenderBuilder|null = null

##### Return values

mixed —

#### buildMessage()

ImageMessageBuilder.php : 73

Builds image message structure.

`public buildMessage() : array<string|int, mixed>`

##### Return values

array<string|int, mixed> —

## Search results