PHP Class Crummy\Phlack\Message\Message

Inheritance: extends Partial, implements Crummy\Phlack\Message\MessageInterface
Mostra file Open project: mcrumm/phlack Class Usage Examples

Protected Properties

Property Type Description
$optional

Public Methods

Method Description
__construct ( $text, null $channel = null, null $username = null, null $iconEmoji = null )
addAttachment ( Crummy\Phlack\Message\AttachmentInterface $attachment )
getAttachments ( ) : AttachmentCollection

Protected Methods

Method Description
setDefaultOptions ( OptionsResolver $resolver )

Method Details

__construct() public method

public __construct ( $text, null $channel = null, null $username = null, null $iconEmoji = null )
$text
$channel null
$username null
$iconEmoji null

addAttachment() public method

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

getAttachments() public method

public getAttachments ( ) : AttachmentCollection
return Crummy\Phlack\Message\Collection\AttachmentCollection

setDefaultOptions() protected method

protected setDefaultOptions ( OptionsResolver $resolver )
$resolver Crummy\Phlack\Common\OptionsResolver

Property Details

$optional protected_oe property

protected $optional