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\FingersCrossed; 13 14/** 15 * Interface for activation strategies for the FingersCrossedHandler. 16 * 17 * @author Johannes M. Schmitt <schmittjoh@gmail.com> 18 * 19 * @phpstan-import-type Record from \Monolog\Logger 20 */ 21interface ActivationStrategyInterface 22{ 23 /** 24 * Returns whether the given record activates the handler. 25 * 26 * @phpstan-param Record $record 27 */ 28 public function isHandlerActivated(array $record): bool; 29} 30