for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace NotificationChannels\Authy;
class AuthyMessage
{
/**
* The notification method (sms/call).
*
* @var string
*/
public $method = 'sms';
* Determine whether to force the notification over cellphone network.
* @var bool
public $force = false;
* The notification message action.
public $action;
* The notification message action message.
public $actionMessage;
* Create a new Authy message instance.
* @return static
public static function create()
return new static();
}
* Set the method of the Authy message.
* @param string $method
* @return $this
public function method($method)
$this->method = $method === 'call' ? 'call' : 'sms';
return $this;
* Indicate that the notification is forced over cellphone network.
public function force()
$this->force = true;
* Set the notification action.
* @param string $action
public function action($action)
$this->action = $action;
* Set the notification action message.
* @param string $actionMessage
public function actionMessage($actionMessage)
$this->actionMessage = $actionMessage;