PHP Class Crummy\Phlack\Bot\AbstractBot

Inheritance: implements BotInterface, implements Crummy\Phlack\Common\Matcher\MatcherAggregate
Afficher le fichier Open project: mcrumm/phlack Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( Crummy\Phlack\Common\Matcher\MatcherInterface $matcher = null, array | Crummy\Phlack\Common\Responder\ResponderInterface $options = [] )
getMatcher ( ) : Crummy\Phlack\Common\Matcher\MatcherInterface | callable
setMatcher ( Crummy\Phlack\Common\Matcher\MatcherInterface $matcher )

Méthodes protégées

Méthode Description
emote ( string $text ) : Reply
reply ( Crummy\Phlack\WebHook\CommandInterface $user, string $text ) : Reply
say ( string $text ) : Reply
send ( Crummy\Phlack\Message\MessageInterface $message ) : EmptyReply
shout ( string $text ) : Reply
tell ( string $user, string $text ) : Reply

Method Details

__construct() public méthode

public __construct ( Crummy\Phlack\Common\Matcher\MatcherInterface $matcher = null, array | Crummy\Phlack\Common\Responder\ResponderInterface $options = [] )
$matcher Crummy\Phlack\Common\Matcher\MatcherInterface
$options array | Crummy\Phlack\Common\Responder\ResponderInterface

emote() protected méthode

protected emote ( string $text ) : Reply
$text string
Résultat Crummy\Phlack\WebHook\Reply\Reply

getMatcher() public méthode

public getMatcher ( ) : Crummy\Phlack\Common\Matcher\MatcherInterface | callable
Résultat Crummy\Phlack\Common\Matcher\MatcherInterface | callable

reply() protected méthode

protected reply ( Crummy\Phlack\WebHook\CommandInterface $user, string $text ) : Reply
$user Crummy\Phlack\WebHook\CommandInterface The user_id, or a CommandInterface to inspect.
$text string
Résultat Crummy\Phlack\WebHook\Reply\Reply

say() protected méthode

protected say ( string $text ) : Reply
$text string
Résultat Crummy\Phlack\WebHook\Reply\Reply

send() protected méthode

protected send ( Crummy\Phlack\Message\MessageInterface $message ) : EmptyReply
$message Crummy\Phlack\Message\MessageInterface
Résultat Crummy\Phlack\WebHook\Reply\EmptyReply

setMatcher() public méthode

public setMatcher ( Crummy\Phlack\Common\Matcher\MatcherInterface $matcher )
$matcher Crummy\Phlack\Common\Matcher\MatcherInterface

shout() protected méthode

protected shout ( string $text ) : Reply
$text string
Résultat Crummy\Phlack\WebHook\Reply\Reply

tell() protected méthode

protected tell ( string $user, string $text ) : Reply
$user string The user_id to tell
$text string
Résultat Crummy\Phlack\WebHook\Reply\Reply