Conversation
in package
AbstractYes
Table of Contents
Properties
Methods
- ask() : void
- getBot() : BotMan|null
- getToken() : string|null
- reply() : void
- run() : void
- say() : void
- setBot() : self
- setToken() : self
- skipsConversation() : bool
- stopsConversation() : bool
Properties
$bot
protected
BotMan|null
$bot
= null
$token
protected
string|null
$token
= null
Methods
ask()
public
ask(string|Question $question, callable $next[, array<string|int, mixed> $additionalParameters = [] ]) : void
Parameters
- $question : string|Question
- $next : callable
- $additionalParameters : array<string|int, mixed> = []
getBot()
public
getBot() : BotMan|null
Return values
BotMan|nullgetToken()
public
getToken() : string|null
Return values
string|nullreply()
public
reply(string|Question $message) : void
Parameters
- $message : string|Question
run()
public
abstract run() : void
say()
public
say(string $message) : void
Parameters
- $message : string
setBot()
public
setBot(BotMan $bot) : self
Parameters
- $bot : BotMan
Return values
selfsetToken()
public
setToken(string $token) : self
Parameters
- $token : string
Return values
selfskipsConversation()
public
skipsConversation() : bool
Return values
boolstopsConversation()
public
stopsConversation() : bool