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\Processor; 13 14/** 15 * An optional interface to allow labelling Monolog processors. 16 * 17 * @author Nicolas Grekas <p@tchwork.com> 18 * 19 * @phpstan-import-type Record from \Monolog\Logger 20 */ 21interface ProcessorInterface 22{ 23 /** 24 * @return array The processed record 25 * 26 * @phpstan-param Record $record 27 * @phpstan-return Record 28 */ 29 public function __invoke(array $record); 30} 31