PluginProbe ʕ •ᴥ•ʔ
WP Mail SMTP by WPForms – The Most Popular SMTP and Email Log Plugin / 4.3.0
WP Mail SMTP by WPForms – The Most Popular SMTP and Email Log Plugin v4.3.0
0.9.6 1.0.0 1.0.1 1.0.2 1.1.0 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.3.0 1.3.1 1.3.2 1.3.3 1.4.0 1.4.1 1.4.2 1.5.0 1.5.1 1.5.2 1.6.0 1.6.2 1.7.0 1.7.1 1.8.0 1.8.1 1.9.0 2.0.0 2.0.1 2.1.1 2.2.1 2.3.1 2.4.0 2.5.0 2.5.1 2.6.0 2.7.0 2.8.0 2.9.0 3.0.1 3.0.2 3.0.3 3.1.0 3.10.0 3.11.0 3.11.1 3.2.0 3.2.1 3.3.0 3.4.0 3.5.0 3.5.1 3.5.2 3.6.1 3.7.0 3.8.0 3.8.2 3.9.0 4.0.1 4.1.0 4.1.1 4.2.0 4.3.0 4.4.0 4.5.0 4.6.0 4.7.0 4.7.1 4.8.0 trunk 0.10.0 0.10.1 0.11.1 0.11.2 0.3.1 0.3.2 0.4 0.4.1 0.4.2 0.5.0 0.5.1 0.5.2 0.6 0.7 0.8 0.8.2 0.8.3 0.8.4 0.8.5 0.8.6 0.8.7 0.9.0 0.9.1 0.9.2 0.9.3 0.9.4 0.9.5
wp-mail-smtp / src / Connection.php
wp-mail-smtp / src Last commit date
Admin 1 year ago Compatibility 1 year ago Helpers 1 year ago Providers 1 year ago Queue 1 year ago Reports 1 year ago Tasks 1 year ago UsageTracking 1 year ago AbstractConnection.php 1 year ago Conflicts.php 1 year ago Connect.php 1 year ago Connection.php 1 year ago ConnectionInterface.php 1 year ago ConnectionsManager.php 1 year ago Core.php 1 year ago DBRepair.php 1 year ago Debug.php 1 year ago Geo.php 1 year ago MailCatcher.php 1 year ago MailCatcherInterface.php 1 year ago MailCatcherTrait.php 1 year ago MailCatcherV6.php 1 year ago Migration.php 1 year ago MigrationAbstract.php 1 year ago Migrations.php 1 year ago OptimizedEmailSending.php 1 year ago Options.php 1 year ago Processor.php 1 year ago SiteHealth.php 1 year ago Upgrade.php 1 year ago Uploads.php 1 year ago WP.php 1 year ago WPMailArgs.php 1 year ago WPMailInitiator.php 1 year ago
Connection.php
79 lines
1 <?php
2
3 namespace WPMailSMTP;
4
5 /**
6 * Class Connection.
7 *
8 * @since 3.7.0
9 */
10 class Connection extends AbstractConnection {
11
12 /**
13 * Connection Options object.
14 *
15 * @since 3.7.0
16 *
17 * @var Options
18 */
19 private $options;
20
21 /**
22 * Constructor.
23 *
24 * @since 3.7.0
25 */
26 public function __construct() {
27
28 $this->options = Options::init();
29 }
30
31 /**
32 * Get the connection identifier.
33 *
34 * @since 3.7.0
35 *
36 * @return string
37 */
38 public function get_id() {
39
40 return 'primary';
41 }
42
43 /**
44 * Get the connection name.
45 *
46 * @since 3.7.0
47 *
48 * @return string
49 */
50 public function get_name() {
51
52 return esc_html__( 'Primary', 'wp-mail-smtp' );
53 }
54
55 /**
56 * Get connection options object.
57 *
58 * @since 3.7.0
59 *
60 * @return Options
61 */
62 public function get_options() {
63
64 return $this->options;
65 }
66
67 /**
68 * Whether the connection is primary or not.
69 *
70 * @since 3.7.0
71 *
72 * @return bool
73 */
74 public function is_primary() {
75
76 return true;
77 }
78 }
79