Menu

## RichMenuBuilder
in package

RichMenuBuilder.php : 29

A builder class for rich menu.

### Table of Contents

$areaBuilders : array<string|int, RichMenuAreaBuilder>
$chatBarText : string
$name : string
$selected : bool
$sizeBuilder : RichMenuSizeBuilder
__construct() : mixed
  RichMenu constructor.
build() : array<string|int, mixed>
  Builds message structure.

### Properties

#### $areaBuilders

RichMenuBuilder.php : 40
`private array<string|int, RichMenuAreaBuilder> $areaBuilders = []`

#### $chatBarText

RichMenuBuilder.php : 38
`private string $chatBarText`

#### $name

RichMenuBuilder.php : 36
`private string $name`

#### $selected

RichMenuBuilder.php : 34
`private bool $selected`

#### $sizeBuilder

RichMenuBuilder.php : 32
`private RichMenuSizeBuilder $sizeBuilder`

### Methods

#### __construct()

RichMenuBuilder.php : 53

RichMenu constructor.

`public __construct(RichMenuSizeBuilder $sizeBuilder, bool $selected, string $name, string $chatBarText, array<string|int, RichMenuAreaBuilder> $areaBuilders) : mixed`

##### Parameters

$sizeBuilder : RichMenuSizeBuilder

  size object which contains the width and height of the rich menu displayed in the chat.

$selected : bool

  true to display the rich menu by default. Otherwise, false.

$name : string

  Name of the rich menu. This value can be used to help manage your rich menus and is not displayed to users.

$chatBarText : string

  Text displayed in the chat bar.

$areaBuilders : array<string|int, RichMenuAreaBuilder>

##### Return values

mixed —

#### build()

RichMenuBuilder.php : 67

Builds message structure.

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

##### Return values

array<string|int, mixed> —

Built message structure.

## Search results