PHP Class Crummy\Phlack\Builder\MessageBuilder

Inheritance: implements Crummy\Phlack\Builder\BuilderInterface
Afficher le fichier Open project: mcrumm/phlack

Méthodes publiques

Méthode Description
__construct ( ) Constructor.
addAttachment ( Crummy\Phlack\Message\AttachmentInterface $attachment )
create ( )
createAttachment ( ) : AttachmentBuilder
setChannel ( $channel )
setIconEmoji ( $iconEmoji )
setText ( string $text )
setUsername ( $username )

Méthodes protégées

Méthode Description
refresh ( ) Reset data to an empty message.

Method Details

__construct() public méthode

Constructor.
public __construct ( )

addAttachment() public méthode

public addAttachment ( Crummy\Phlack\Message\AttachmentInterface $attachment )
$attachment Crummy\Phlack\Message\AttachmentInterface

create() public méthode

public create ( )

createAttachment() public méthode

public createAttachment ( ) : AttachmentBuilder
Résultat AttachmentBuilder

refresh() protected méthode

Reset data to an empty message.
protected refresh ( )

setChannel() public méthode

public setChannel ( $channel )
$channel

setIconEmoji() public méthode

public setIconEmoji ( $iconEmoji )
$iconEmoji

setText() public méthode

public setText ( string $text )
$text string

setUsername() public méthode

public setUsername ( $username )
$username