PHP Class pimax\Messages\MessageButton

Show file Open project: pimax/fb-messenger-php

Protected Properties

Property Type Description
$title null | string Button title
$type null | string Button type
$url null | string Button url

Public Methods

Method Description
__construct ( string $type, string $title, string $url = '' ) MessageButton constructor.
getData ( ) : array Get Button data

Method Details

__construct() public method

MessageButton constructor.
public __construct ( string $type, string $title, string $url = '' )
$type string
$title string
$url string url or postback

getData() public method

Get Button data
public getData ( ) : array
return array

Property Details

$title protected property

Button title
protected null|string $title
return null | string

$type protected property

Button type
protected null|string $type
return null | string

$url protected property

Button url
protected null|string $url
return null | string