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
ConnectionInterface.php
77 lines
| 1 | <?php |
| 2 | |
| 3 | namespace WPMailSMTP; |
| 4 | |
| 5 | use WPMailSMTP\Providers\MailerAbstract; |
| 6 | |
| 7 | /** |
| 8 | * Interface ConnectionInterface. |
| 9 | * |
| 10 | * @since 3.7.0 |
| 11 | */ |
| 12 | interface ConnectionInterface { |
| 13 | |
| 14 | /** |
| 15 | * Get the connection identifier. |
| 16 | * |
| 17 | * @since 3.7.0 |
| 18 | * |
| 19 | * @return string |
| 20 | */ |
| 21 | public function get_id(); |
| 22 | |
| 23 | /** |
| 24 | * Get the connection name. |
| 25 | * |
| 26 | * @since 3.7.0 |
| 27 | * |
| 28 | * @return string |
| 29 | */ |
| 30 | public function get_name(); |
| 31 | |
| 32 | /** |
| 33 | * Get the connection title. Includes mailer name. |
| 34 | * |
| 35 | * @since 3.7.0 |
| 36 | * |
| 37 | * @return string |
| 38 | */ |
| 39 | public function get_title(); |
| 40 | |
| 41 | /** |
| 42 | * Get connection mailer slug. |
| 43 | * |
| 44 | * @since 3.7.0 |
| 45 | * |
| 46 | * @return string |
| 47 | */ |
| 48 | public function get_mailer_slug(); |
| 49 | |
| 50 | /** |
| 51 | * Get connection mailer object. |
| 52 | * |
| 53 | * @since 3.7.0 |
| 54 | * |
| 55 | * @return MailerAbstract |
| 56 | */ |
| 57 | public function get_mailer(); |
| 58 | |
| 59 | /** |
| 60 | * Get connection options object. |
| 61 | * |
| 62 | * @since 3.7.0 |
| 63 | * |
| 64 | * @return Options |
| 65 | */ |
| 66 | public function get_options(); |
| 67 | |
| 68 | /** |
| 69 | * Whether the connection is primary or not. |
| 70 | * |
| 71 | * @since 3.7.0 |
| 72 | * |
| 73 | * @return bool |
| 74 | */ |
| 75 | public function is_primary(); |
| 76 | } |
| 77 |