1<?php declare(strict_types=1);
2
3/*
4 * This file is part of the Monolog package.
5 *
6 * (c) Jordi Boggiano <j.boggiano@seld.be>
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11
12namespace Monolog\Handler;
13
14use Monolog\Formatter\FormatterInterface;
15
16/**
17 * Interface to describe loggers that have a formatter
18 *
19 * @author Jordi Boggiano <j.boggiano@seld.be>
20 */
21interface FormattableHandlerInterface
22{
23    /**
24     * Sets the formatter.
25     *
26     * @param  FormatterInterface $formatter
27     * @return HandlerInterface   self
28     */
29    public function setFormatter(FormatterInterface $formatter): HandlerInterface;
30
31    /**
32     * Gets the formatter.
33     *
34     * @return FormatterInterface
35     */
36    public function getFormatter(): FormatterInterface;
37}
38