friendica-addons/monolog/vendor/monolog/monolog/src/Monolog/Handler/FormattableHandlerInterface.php

38 lines
845 B
PHP
Raw Normal View History

2022-10-17 21:25:03 +02:00
<?php declare(strict_types=1);
/*
* This file is part of the Monolog package.
*
* (c) Jordi Boggiano <j.boggiano@seld.be>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Monolog\Handler;
use Monolog\Formatter\FormatterInterface;
/**
* Interface to describe loggers that have a formatter
*
* @author Jordi Boggiano <j.boggiano@seld.be>
*/
interface FormattableHandlerInterface
{
/**
* Sets the formatter.
*
2023-01-18 00:17:49 +01:00
* @param FormatterInterface $formatter
* @return HandlerInterface self
2022-10-17 21:25:03 +02:00
*/
public function setFormatter(FormatterInterface $formatter): HandlerInterface;
/**
* Gets the formatter.
2023-01-18 00:17:49 +01:00
*
* @return FormatterInterface
2022-10-17 21:25:03 +02:00
*/
public function getFormatter(): FormatterInterface;
}