GelfMocks.php 497B

123456789101112131415161718192021222324252627
  1. <?php
  2. /*
  3. * This file is part of the Monolog package.
  4. *
  5. * (c) Jordi Boggiano <j.boggiano@seld.be>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Monolog\Handler;
  11. use Gelf\MessagePublisher;
  12. use Gelf\Message;
  13. class MockMessagePublisher extends MessagePublisher
  14. {
  15. public function publish(Message $message)
  16. {
  17. $this->lastMessage = $message;
  18. }
  19. public $lastMessage = null;
  20. }