for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace FondBot\Conversation;
use FondBot\Bot;
use FondBot\Conversation\Traits\Transitions;
use FondBot\Conversation\Activators\Activator;
use FondBot\Conversation\Traits\Authorization;
use FondBot\Conversation\Traits\HasActivators;
use FondBot\Conversation\Traits\SendsMessages;
use FondBot\Conversation\Traits\InteractsWithContext;
abstract class Intent implements Conversable
{
use InteractsWithContext,
SendsMessages,
Authorization,
HasActivators,
Transitions;
/**
* Determine if intent passes the authorization check.
*
* @return bool
*/
public function passesAuthorization(): bool
return true;
}
* Intent activators.
* @return Activator[]
abstract public function activators(): array;
* Run intent.
abstract public function run(): void;
* Handle intent.
* @param Bot $bot
public function handle(Bot $bot): void
$this->bot = $bot;
$this->run();