PHP Class Crummy\Phlack\Message\Message

Inheritance: extends Partial, implements Crummy\Phlack\Message\MessageInterface
Afficher le fichier Open project: mcrumm/phlack Class Usage Examples

Protected Properties

Свойство Type Description
$optional

Méthodes publiques

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

Méthodes protégées

Méthode Description
setDefaultOptions ( OptionsResolver $resolver )

Method Details

__construct() public méthode

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

addAttachment() public méthode

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

getAttachments() public méthode

public getAttachments ( ) : AttachmentCollection
Résultat Crummy\Phlack\Message\Collection\AttachmentCollection

setDefaultOptions() protected méthode

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

Property Details

$optional protected_oe property

protected $optional