PHP Class Slack\Message\Message

See also: Slack\Message\MessageInterface
Inheritance: implements MessageInterface
Afficher le fichier Open project: polem/slack-notifier Class Usage Examples

Protected Properties

Свойство Type Description
$attachments
$channel
$icon_emoji
$icon_url
$link_names
$mrkdwn
$text
$username

Méthodes publiques

Méthode Description
__construct ( string $text = '' ) __construct
addAttachment ( MessageAttachment $attachment ) addAttachment
enableLinkNames ( string $link_names ) Set link_names
getAttachments ( ) : MessageAttachment[] Get attachments
getChannel ( ) : string Get channel
getIconEmoji ( ) : string Get icon_emoji
getIconUrl ( ) : string Get icon_url
getLinkNames ( ) : string Get link_names
getMrkdwn ( ) : boolean Get markdown property
getText ( ) : string Get text
getUsername ( ) : string Get username
setAttachments ( $attachments ) Set attachments
setChannel ( string $channel ) Set channel
setIconEmoji ( string $icon_emoji ) Set icon_emoji
setIconUrl ( string $icon_url ) Set icon_url
setMrkdwn ( boolean $mrkdwn ) Set markdown
setText ( string $text ) : MessageInterface Set text
setUsername ( string $username ) Set username

Method Details

__construct() public méthode

__construct
public __construct ( string $text = '' )
$text string message text

addAttachment() public méthode

addAttachment
public addAttachment ( MessageAttachment $attachment )
$attachment MessageAttachment

enableLinkNames() public méthode

Set link_names
public enableLinkNames ( string $link_names )
$link_names string the value to set

getAttachments() public méthode

Get attachments
public getAttachments ( ) : MessageAttachment[]
Résultat MessageAttachment[] attachments

getChannel() public méthode

Get channel
public getChannel ( ) : string
Résultat string

getIconEmoji() public méthode

Get icon_emoji
public getIconEmoji ( ) : string
Résultat string

getIconUrl() public méthode

Get icon_url
public getIconUrl ( ) : string
Résultat string

getLinkNames() public méthode

Get link_names
public getLinkNames ( ) : string
Résultat string

getMrkdwn() public méthode

Get markdown property
public getMrkdwn ( ) : boolean
Résultat boolean

getText() public méthode

Get text
public getText ( ) : string
Résultat string

getUsername() public méthode

Get username
public getUsername ( ) : string
Résultat string

setAttachments() public méthode

Set attachments
public setAttachments ( $attachments )

setChannel() public méthode

Set channel
public setChannel ( string $channel )
$channel string the value to set

setIconEmoji() public méthode

Set icon_emoji
public setIconEmoji ( string $icon_emoji )
$icon_emoji string the value to set

setIconUrl() public méthode

Set icon_url
public setIconUrl ( string $icon_url )
$icon_url string the value to set

setMrkdwn() public méthode

Set markdown
public setMrkdwn ( boolean $mrkdwn )
$mrkdwn boolean

setText() public méthode

Set text
public setText ( string $text ) : MessageInterface
$text string the value to set
Résultat MessageInterface

setUsername() public méthode

Set username
public setUsername ( string $username )
$username string the value to set

Property Details

$attachments protected_oe property

protected $attachments

$channel protected_oe property

protected $channel

$icon_emoji protected_oe property

protected $icon_emoji

$icon_url protected_oe property

protected $icon_url

$mrkdwn protected_oe property

protected $mrkdwn

$text protected_oe property

protected $text

$username protected_oe property

protected $username