PHP Class Slack\Message\MessageAttachment

显示文件 Open project: polem/slack-notifier

Protected Properties

Property Type Description
$author_icon
$author_link
$author_name
$color
$fallback
$fields
$image_url
$mrkdwn_in
$pretext
$text
$title
$title_link

Public Methods

Method Description
__construct ( )
addField ( MessageField $field ) addField
getAuthorIcon ( ) : string Get author_icon
getAuthorLink ( ) : string Get author_link
getAuthorName ( ) Get author_name
getColor ( ) : string Get color
getFallback ( ) : string Get fallback
getFields ( ) : MessageField[] Get fields
getImageUrl ( ) : string Get image_url
getMrkdwnIn ( ) : string[] Get mrkdwn_in property
getPretext ( ) : string Get pretext
getText ( ) : string Get text
getTitle ( ) : string Get title
getTitleLink ( ) : string Get title_link
setAuthorIcon ( string $author_icon ) Set author_icon
setAuthorLink ( string $author_link ) Set author_link
setAuthorName ( string $author_name ) Set author_name
setColor ( string $color ) Set color
setFallback ( string $fallback ) Set fallback
setFields ( MessageField[] $fields ) Set fields
setImageUrl ( string $image_url ) Set image_url
setMrkdwnIn ( $mrkdwn_in ) Set mrkdwn_in property
setPretext ( string $pretext ) Set pretext
setText ( string $text ) Set text
setTitle ( string $title ) Set title
setTitleLink ( string $title_link ) Set title_link

Method Details

__construct() public method

public __construct ( )

addField() public method

addField
public addField ( MessageField $field )
$field MessageField

getAuthorIcon() public method

Get author_icon
public getAuthorIcon ( ) : string
return string

getAuthorName() public method

Get author_name
public getAuthorName ( )

getColor() public method

Get color
public getColor ( ) : string
return string

getFallback() public method

Get fallback
public getFallback ( ) : string
return string

getFields() public method

Get fields
public getFields ( ) : MessageField[]
return MessageField[] fields

getImageUrl() public method

Get image_url
public getImageUrl ( ) : string
return string

getMrkdwnIn() public method

Get mrkdwn_in property
public getMrkdwnIn ( ) : string[]
return string[] mrkdwn_in

getPretext() public method

Get pretext
public getPretext ( ) : string
return string

getText() public method

Get text
public getText ( ) : string
return string

getTitle() public method

Get title
public getTitle ( ) : string
return string

setAuthorIcon() public method

Set author_icon
public setAuthorIcon ( string $author_icon )
$author_icon string the value to set

setAuthorName() public method

Set author_name
public setAuthorName ( string $author_name )
$author_name string the value to set

setColor() public method

Set color
public setColor ( string $color )
$color string the value to set

setFallback() public method

Set fallback
public setFallback ( string $fallback )
$fallback string the value to set

setFields() public method

Set fields
public setFields ( MessageField[] $fields )
$fields MessageField[] the value to set

setImageUrl() public method

Set image_url
public setImageUrl ( string $image_url )
$image_url string the value to set

setMrkdwnIn() public method

Set mrkdwn_in property
public setMrkdwnIn ( $mrkdwn_in )

setPretext() public method

Set pretext
public setPretext ( string $pretext )
$pretext string the value to set

setText() public method

Set text
public setText ( string $text )
$text string the value to set

setTitle() public method

Set title
public setTitle ( string $title )
$title string the value to set

Property Details

$author_icon protected_oe property

protected $author_icon

$author_name protected_oe property

protected $author_name

$color protected_oe property

protected $color

$fallback protected_oe property

protected $fallback

$fields protected_oe property

protected $fields

$image_url protected_oe property

protected $image_url

$mrkdwn_in protected_oe property

protected $mrkdwn_in

$pretext protected_oe property

protected $pretext

$text protected_oe property

protected $text

$title protected_oe property

protected $title