PHP Class pimax\Messages\MessageElement

Show file 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 property

Buttons
protected array $buttons
return array

$image_url protected property

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

$subtitle protected property

Subtitle
protected null|string $subtitle
return null | string

$title protected property

Title
protected null|string $title
return null | string

$url protected property

Url
protected null|string $url
return null | string