PHP Class pimax\Messages\Attachment

Datei anzeigen Open project: pimax/fb-messenger-php

Public Methods

Method Description
__construct ( string $type, array $payload = [] ) Attachment constructor.
getData ( ) : array
getFileData ( ) : string
getPayload ( ) : array
getType ( ) : string
setFileData ( string $fileData )
setPayload ( array $payload )
setType ( string $type )

Method Details

__construct() public method

Attachment constructor.
public __construct ( string $type, array $payload = [] )
$type string
$payload array

getData() public method

public getData ( ) : array
return array

getFileData() public method

public getFileData ( ) : string
return string

getPayload() public method

public getPayload ( ) : array
return array

getType() public method

public getType ( ) : string
return string

setFileData() public method

public setFileData ( string $fileData )
$fileData string

setPayload() public method

public setPayload ( array $payload )
$payload array

setType() public method

public setType ( string $type )
$type string