* @license GNU General Public License, version 2 (GPL-2.0) * * For full copyright and license information, please see * the docs/CREDITS.txt file. * */ namespace phpbb\messenger\method; /** * Messenger method interface class */ interface messenger_interface { /** * Get messenger method id * * @return int */ public function get_id(): int; /** * Check if the messenger method is enabled * * @return bool */ public function is_enabled(): bool; /** * Set up subject for the message * * @param string $subject Email subject * * @return void */ public function subject(string $subject = ''): void; /** * Send out messages * * @return bool */ public function send(): bool; /** * Add error message to log * * @param string $msg Error message text * * @return void */ public function error(string $msg): void; }