PHP Класс Crummy\Phlack\Bot\AbstractBot

Наследование: implements BotInterface, implements Crummy\Phlack\Common\Matcher\MatcherAggregate
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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 )

Защищенные методы

Метод Описание
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

Описание методов

__construct() публичный Метод

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 emote ( string $text ) : Reply
$text string
Результат Crummy\Phlack\WebHook\Reply\Reply

getMatcher() публичный Метод

public getMatcher ( ) : Crummy\Phlack\Common\Matcher\MatcherInterface | callable
Результат Crummy\Phlack\Common\Matcher\MatcherInterface | callable

reply() защищенный Метод

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
Результат Crummy\Phlack\WebHook\Reply\Reply

say() защищенный Метод

protected say ( string $text ) : Reply
$text string
Результат Crummy\Phlack\WebHook\Reply\Reply

send() защищенный Метод

protected send ( Crummy\Phlack\Message\MessageInterface $message ) : EmptyReply
$message Crummy\Phlack\Message\MessageInterface
Результат Crummy\Phlack\WebHook\Reply\EmptyReply

setMatcher() публичный Метод

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

shout() защищенный Метод

protected shout ( string $text ) : Reply
$text string
Результат Crummy\Phlack\WebHook\Reply\Reply

tell() защищенный Метод

protected tell ( string $user, string $text ) : Reply
$user string The user_id to tell
$text string
Результат Crummy\Phlack\WebHook\Reply\Reply