SmsGateway.php in SMS Framework 2.x
Same filename in this branch
Same filename and directory in other branches
Namespace
Drupal\sms\AnnotationFile
src/Annotation/SmsGateway.phpView source
<?php
declare (strict_types=1);
// phpcs:disable Drupal.NamingConventions.ValidVariableName.LowerCamelName
namespace Drupal\sms\Annotation;
use Drupal\Component\Annotation\Plugin;
/**
* Defines SmsGateway Annotation object.
*
* @Annotation
*/
class SmsGateway extends Plugin {
/**
* The machine name of the sms gateway.
*
* @var string
*/
protected $id;
/**
* Translated user-readable label.
*
* @var string
*/
protected $label;
/**
* Maximum number of recipients per outgoing message.
*
* Use -1 for no limit.
*
* @var int
*/
protected $outgoing_message_max_recipients;
/**
* Whether the gateway supports receiving messages.
*
* @var bool
*/
protected $incoming;
/**
* Whether to automatically create a route for receiving incoming messages.
*
* @var bool
*/
protected $incoming_route;
/**
* Whether the gateway is capable of delaying messages until a date.
*
* Schedule aware gateways must extract sending time from all message
* getSendTime() method. Keep in mind this method is only available if the
* message is a SMS message entity. See the schedule aware gateway
* implementation in the test modules for an example.
*
* @var bool
*/
protected $schedule_aware;
/**
* Whether the gateway can pull reports.
*
* @var bool
* @see \Drupal\sms\Entity\SmsGatewayInterface::supportsReportsPull()
*/
protected $reports_pull;
/**
* Whether the gateway can handle reports pushed to the site.
*
* @var bool
* @see \Drupal\sms\Entity\SmsGatewayInterface::supportsReportsPush()
*/
protected $reports_push;
/**
* Whether the gateway supports queries of current credit balance.
*
* @var bool
* @see \Drupal\sms\Entity\SmsGatewayInterface::supportsCreditBalanceQuery()
*/
protected $credit_balance_available;
}
Classes
Name | Description |
---|---|
SmsGateway | Defines SmsGateway Annotation object. |