for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace FondBot\Drivers;
use FondBot\Conversation\Keyboard;
/**
* Message to be sent to receiver.
*/
class OutgoingMessage
{
private $recipient;
private $text;
private $keyboard;
public function __construct(User $recipient, string $text, Keyboard $keyboard = null)
$this->recipient = $recipient;
$this->text = $text;
$this->keyboard = $keyboard;
}
* Get recipient.
*
* @return User
public function getRecipient(): User
return $this->recipient;
* Get message text.
* @return string
public function getText(): string
return $this->text;
* Get keyboard.
* @return Keyboard|null
public function getKeyboard(): ?Keyboard
return $this->keyboard;