2022/CVE-2022-0349/vultarget/notificationx/includes/Extensions/IFTTT/IFTTT.php
<?php
/**
 * IFTTT Extension
 *
 * @package NotificationX\Extensions
 */

namespace NotificationX\Extensions\IFTTT;

use NotificationX\GetInstance;
use NotificationX\Extensions\Extension;

/**
 * IFTTT Extension
 */
class IFTTT extends Extension {
    /**
     * Instance of IFTTT
     *
     * @var IFTTT
     */
    use GetInstance;

    public $id = 'ifttt';
    public $img = '';
    public $doc_link = 'https://notificationx.com/docs/ifttt-notification-alert/';
    public $types = 'email_subscription';
    public $module = 'modules_ifttt';
    public $is_pro = true;

    /**
     * Initially Invoked when initialized.
     */
    public function __construct(){
        $this->title = __('IFTTT', 'notificationx');
        $this->module_title = __('IFTTT', 'notificationx');
        parent::__construct();
    }

    /**
     * Get data for IFTTT Extension.
     *
     * @param array $args Settings arguments.
     * @return array
     */
    public function get_data( $args = array() ){
        return 'Hello From IFTTT';
    }
}
