# fluent-smtp/trunk/app/Models/Model.php

FluentSMTP – WP Mail SMTP Plugin with Amazon SES, SendGrid, Mailgun, Postmark, Cloudflare, toSend, Gmail and Any SMTP, version trunk. 33 lines.

- Page: https://pluginprobe.com/plugins/fluent-smtp/trunk/code/app/Models/Model.php
- Raw: https://pluginprobe.com/plugins/fluent-smtp/trunk/raw/app/Models/Model.php
- Modified: 2025-12-28T13:22:36+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/fluent-smtp/trunk/code/app/Models/Model.php#L10-L20`.

```php
<?php

namespace FluentMail\App\Models;

class Model
{
    protected $db  = null;
    protected $app = null;

    protected $table = null;

    public function __construct()
    {
        $this->app = fluentMail();
        $this->db  = $GLOBALS['wpdb'];
    }

    public function getTable()
    {
        return $this->table;
    }

    public function __call($method, $params)
    {
        return call_user_func_array([$this->db, $method], $params);
    }

    public function getDb()
    {
        return fluentMailDb();
    }
}

```
