PHP Class pimax\Messages\MessageElement

ファイルを表示 Open project: pimax/fb-messenger-php

Protected Properties

Property Type Description
$buttons array Buttons
$image_url null | string Image url
$subtitle null | string Subtitle
$title null | string Title
$url null | string Url

Public Methods

Method Description
__construct ( string $title, string $subtitle, string $image_url = '', array $buttons = [], $url = '' ) MessageElement constructor.
getData ( ) : array Get Element data

Method Details

__construct() public method

MessageElement constructor.
public __construct ( string $title, string $subtitle, string $image_url = '', array $buttons = [], $url = '' )
$title string
$subtitle string
$image_url string
$buttons array

getData() public method

Get Element data
public getData ( ) : array
return array

Property Details

$buttons protected_oe property

Buttons
protected array $buttons
return array

$image_url protected_oe property

Image url
protected null|string $image_url
return null | string

$subtitle protected_oe property

Subtitle
protected null|string $subtitle
return null | string

$title protected_oe property

Title
protected null|string $title
return null | string

$url protected_oe property

Url
protected null|string $url
return null | string