# texty/2.0.1/includes/Gateways/GatewayInterface.php

Texty – SMS Notification for WordPress, WooCommerce, Dokan and more, version 2.0.1. 54 lines.

- Page: https://pluginprobe.com/plugins/texty/2.0.1/code/includes/Gateways/GatewayInterface.php
- Raw: https://pluginprobe.com/plugins/texty/2.0.1/raw/includes/Gateways/GatewayInterface.php
- Modified: 2026-06-16T12:07:42+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/texty/2.0.1/code/includes/Gateways/GatewayInterface.php#L10-L20`.

```php
<?php

namespace Texty\Gateways;

interface GatewayInterface {

    /**
     * Send a text
     *
     * @param string $to
     * @param string $message
     *
     * @return mixed
     */
    public function send( $to, $message );

    /**
     * Returns URL to the logo
     *
     * @return string
     */
    public function logo();

    /**
     * Get the gateway name
     *
     * @return string
     */
    public function name();

    /**
     * Get the gateway description
     *
     * @return string
     */
    public function description();

    /**
     * Get gateway credential
     *
     * @return array
     */
    public function get_settings();

    /**
     * Validate a REST API request
     *
     * @param WP_REST_Request $request
     *
     * @return WP_Error|true
     */
    public function validate( $request );
}

```
