PHP Class Crummy\Phlack\Builder\MessageBuilder

Inheritance: implements Crummy\Phlack\Builder\BuilderInterface
Show file Open project: mcrumm/phlack

Public Methods

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

Protected Methods

Method Description
refresh ( ) Reset data to an empty message.

Method Details

__construct() public method

Constructor.
public __construct ( )

addAttachment() public method

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

create() public method

public create ( )

createAttachment() public method

public createAttachment ( ) : AttachmentBuilder
return AttachmentBuilder

refresh() protected method

Reset data to an empty message.
protected refresh ( )

setChannel() public method

public setChannel ( $channel )
$channel

setIconEmoji() public method

public setIconEmoji ( $iconEmoji )
$iconEmoji

setText() public method

public setText ( string $text )
$text string

setUsername() public method

public setUsername ( $username )
$username