1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-21 16:46:11 +02:00
This commit is contained in:
Jordi Boggiano
2016-07-02 15:12:25 +01:00
parent a36b099646
commit f16e67d523
9 changed files with 27 additions and 24 deletions

View File

@@ -26,12 +26,12 @@ class SwiftMailerHandler extends MailHandler
private $messageTemplate;
/**
* @param \Swift_Mailer $mailer The mailer to use
* @param \Swift_Mailer $mailer The mailer to use
* @param callable|Swift_Message $message An example message for real messages, only the body will be replaced
* @param int $level The minimum logging level at which this handler will be triggered
* @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not
* @param int|string $level The minimum logging level at which this handler will be triggered
* @param bool $bubble Whether the messages that are handled can bubble up the stack or not
*/
public function __construct(\Swift_Mailer $mailer, $message, $level = Logger::ERROR, $bubble = true)
public function __construct(\Swift_Mailer $mailer, $message, $level = Logger::ERROR, bool $bubble = true)
{
parent::__construct($level, $bubble);
@@ -50,8 +50,8 @@ class SwiftMailerHandler extends MailHandler
/**
* Creates instance of Swift_Message to be sent
*
* @param string $content formatted email body to be sent
* @param array $records Log records that formed the content
* @param string $content formatted email body to be sent
* @param array $records Log records that formed the content
* @return Swift_Message
*/
protected function buildMessage(string $content, array $records): Swift_Message