PHP Class pimax\Messages\Message

Show file Open project: pimax/fb-messenger-php Class Usage Examples

Protected Properties

Property Type Description
$recipient null | string
$text null | string

Public Methods

Method Description
__construct ( string $recipient, string $text ) Message constructor.
getData ( ) : array Get message data

Protected Methods

Method Description
getCurlValue ( string $filename, string $contentType, string $postname ) : CURLFile | string

Method Details

__construct() public method

Message constructor.
public __construct ( string $recipient, string $text )
$recipient string
$text string

getCurlValue() protected method

protected getCurlValue ( string $filename, string $contentType, string $postname ) : CURLFile | string
$filename string
$contentType string
$postname string
return CURLFile | string

getData() public method

Get message data
public getData ( ) : array
return array

Property Details

$recipient protected property

protected null|string $recipient
return null | string

$text protected property

protected null|string $text
return null | string