PHP 클래스 Crummy\Phlack\Bot\AbstractBot

상속: implements BotInterface, implements Crummy\Phlack\Common\Matcher\MatcherAggregate
파일 보기 프로젝트 열기: mcrumm/phlack 1 사용 예제들

공개 메소드들

메소드 설명
__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