TYPO3  7.6
MessageLogger.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * This file is part of SwiftMailer.
5  * (c) 2011 Fabien Potencier
6  *
7  * For the full copyright and license information, please view the LICENSE
8  * file that was distributed with this source code.
9  */
10 
17 {
21  private $messages;
22 
23  public function __construct()
24  {
25  $this->messages = array();
26  }
27 
33  public function getMessages()
34  {
35  return $this->messages;
36  }
37 
43  public function countMessages()
44  {
45  return count($this->messages);
46  }
47 
51  public function clear()
52  {
53  $this->messages = array();
54  }
55 
62  {
63  $this->messages[] = clone $evt->getMessage();
64  }
65 
71  public function sendPerformed(Swift_Events_SendEvent $evt)
72  {
73  }
74 }