Menu

## LocationMessageBuilder
in package
implements MessageBuilder

LocationMessageBuilder.php : 31

A builder class for location message.

### Interfaces, Classes and Traits

MessageBuilder
  The interface that has a responsibility to build message.

### Table of Contents

$address : string
$latitude : float
$longitude : float
$message : array<string|int, mixed>
$quickReply : QuickReplyBuilder|null
$sender : SenderBuilder|null
$title : string
__construct() : mixed
  LocationMessageBuilder constructor.
buildMessage() : array<string|int, mixed>
  Builds location message structure.

### Properties

#### $address

LocationMessageBuilder.php : 37
`private string $address`

#### $latitude

LocationMessageBuilder.php : 40
`private float $latitude`

#### $longitude

LocationMessageBuilder.php : 43
`private float $longitude`

#### $message

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

#### $quickReply

LocationMessageBuilder.php : 49
`private QuickReplyBuilder|null $quickReply`

#### $sender

LocationMessageBuilder.php : 52
`private SenderBuilder|null $sender`

#### $title

LocationMessageBuilder.php : 34
`private string $title`

### Methods

#### __construct()

LocationMessageBuilder.php : 64

LocationMessageBuilder constructor.

`public __construct(string $title, string $address, float $latitude, float $longitude[, QuickReplyBuilder|null $quickReply = null ][, SenderBuilder|null $sender = null ]) : mixed`

##### Parameters

$title : string
$address : string
$latitude : float
$longitude : float
$quickReply : QuickReplyBuilder|null = null
$sender : SenderBuilder|null = null

##### Return values

mixed —

#### buildMessage()

LocationMessageBuilder.php : 85

Builds location message structure.

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

##### Return values

array<string|int, mixed> —

## Search results