HEX
Server: Apache
System: Linux ce2021070511001 4.19.0-14-amd64 #1 SMP Debian 4.19.171-2 (2021-01-30) x86_64
User: EF029LB627 (5331)
PHP: 8.0.30
Disabled: exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source,posix_getpwuid,symlink,escapeshellcmd,opcache_get_status
Upload Files
File: /var/www/laiaalmenara.es/datos/web/wp-content/plugins/wp-mail-smtp/src/ConnectionsManager.php
<?php

namespace WPMailSMTP;

/**
 * Class ConnectionsManager.
 *
 * @since 3.7.0
 */
class ConnectionsManager {

	/**
	 * Primary connection object.
	 *
	 * @since 3.7.0
	 *
	 * @var ConnectionInterface
	 */
	private $primary_connection = null;

	/**
	 * Get the connection object that should be used for email sending.
	 *
	 * @since 3.7.0
	 *
	 * @return ConnectionInterface
	 */
	public function get_mail_connection() {

		return $this->get_primary_connection();
	}

	/**
	 * Get the primary connection object.
	 *
	 * @since 3.7.0
	 *
	 * @return ConnectionInterface
	 */
	public function get_primary_connection() {

		if ( is_null( $this->primary_connection ) ) {
			$this->primary_connection = new Connection();
		}

		return $this->primary_connection;
	}
}