| Server IP : 13.126.101.145 / Your IP : 216.73.217.33 Web Server : Apache/2.4.52 (Ubuntu) System : Linux ip-11-115-0-196 6.8.0-1039-aws #41~22.04.1-Ubuntu SMP Thu Sep 11 10:54:48 UTC 2025 x86_64 User : www-data ( 33) PHP Version : 8.3.17 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/html/rentals_updated/wp-content/plugins/wp-mail-smtp/src/ |
Upload File : |
<?php
namespace WPMailSMTP;
/**
* Class Connection.
*
* @since 3.7.0
*/
class Connection extends AbstractConnection {
/**
* Connection Options object.
*
* @since 3.7.0
*
* @var Options
*/
private $options;
/**
* Constructor.
*
* @since 3.7.0
*/
public function __construct() {
$this->options = Options::init();
}
/**
* Get the connection identifier.
*
* @since 3.7.0
*
* @return string
*/
public function get_id() {
return 'primary';
}
/**
* Get the connection name.
*
* @since 3.7.0
*
* @return string
*/
public function get_name() {
return esc_html__( 'Primary', 'wp-mail-smtp' );
}
/**
* Get connection options object.
*
* @since 3.7.0
*
* @return Options
*/
public function get_options() {
return $this->options;
}
/**
* Whether the connection is primary or not.
*
* @since 3.7.0
*
* @return bool
*/
public function is_primary() {
return true;
}
}