1 | <?php |
||
15 | class Conversation |
||
16 | { |
||
17 | const MAX_STEPS_ITERATION = 5; |
||
18 | |||
19 | /** |
||
20 | * @var ConversationDelegate |
||
21 | */ |
||
22 | private $conversation; |
||
23 | |||
24 | public function __construct(Api $api, ActionMapping $actionMapping) |
||
29 | |||
30 | /** |
||
31 | * @param string $sessionId |
||
32 | * @param string|null $message |
||
33 | * @param Context|null $context |
||
34 | * @param int $stepIteration |
||
35 | * |
||
36 | * @return Context The new Context |
||
37 | */ |
||
38 | public function converse($sessionId, $message = null, Context $context = null, $stepIteration = self::MAX_STEPS_ITERATION) |
||
42 | } |
||
43 |