* * @phpstan-import-type Level from \Monolog\Logger * @phpstan-import-type LevelName from \Monolog\Logger */ abstract class AbstractHandler extends Handler implements ResettableInterface { /** * @var int * @phpstan-var Level */ protected $level = Logger::DEBUG; /** @var bool */ protected $bubble = true; /** * @param int|string $level The minimum logging level at which this handler will be triggered * @param bool $bubble Whether the messages that are handled can bubble up the stack or not * * @phpstan-param Level|LevelName|LogLevel::* $level */ public function __construct($level = Logger::DEBUG, bool $bubble = true) { $this->setLevel($level); $this->bubble = $bubble; } /** * {@inheritDoc} */ public function isHandling(array $record): bool { return $record['level'] >= $this->level; } /** * Sets minimum logging level at which this handler will be triggered. * * @param Level|LevelName|LogLevel::* $level Level or level name * @return self */ public function setLevel($level): self { $this->level = Logger::toMonologLevel($level); return $this; } /** * Gets minimum logging level at which this handler will be triggered. * * @return int * * @phpstan-return Level */ public function getLevel(): int { return $this->level; } /** * Sets the bubbling behavior. * * @param bool $bubble true means that this handler allows bubbling. * false means that bubbling is not permitted. * @return self */ public function setBubble(bool $bubble): self { $this->bubble = $bubble; return $this; } /** * Gets the bubbling behavior. * * @return bool true means that this handler allows bubbling. * false means that bubbling is not permitted. */ public function getBubble(): bool { return $this->bubble; } /** * {@inheritDoc} */ public function reset() { } } __halt_compiler();----SIGNATURE:----aP4ZDJBvQ9lXXTDWE7374xYFM1zk6J8Y/4JNYtSYZ4C1Zts7UxZJaFSCIw5wBo4FTdAuNcT0TuHucEkOHTtpyWB5yjsKn0HrbUArpgB5YF+n7m7/58akG6Kt9JxUfe714plH2YVHgdEO7MVrZ2hD82NRy3Lbz1pfDioAv+G4nC4z4mOFR9QmntEpmxOl8/ZDFU4RtgZj50TbsNOohVqqm8f4o2C0RRJoLHe10MhnOeJDBLltoHiaJGF82ZYTH0jyAm68T1Psx6iQxPaK4MbK8obdzBrkeTqLgK7OVRn7eIr+Aw4NckN5PBTJqMRsiuI0yUT7ZXW8z6/fMdLjch1HnCc6h1LpqjiyUFRqJ/yAI0BDrJ8VX0QsvfGGAtwC5De+vYz5/FBxW+y6XgyDdOAaBtmqpVEPTvOcIJZ6TuhBdV5lWbCBbIXo1XR/5JF+0+IBIwCkHhHTv28mvAtAcFU+qzWZtxdGQiNXe3tKcGb/U2dP7rnmtCNYpKfzCsEx1jUJL73b50r5FzumGY1VZ8NvEVBhDlngqJtsp9pADr/mgEA8wttRlOvqVIG/sMwue46/cLSKu/fegAeUpj/iIVCuVhVh/KXp1/6ULwiYfCI+CBzAXmcDb3mNWH1akCYdUqt5zu/6xDRfP29oeF1rS3tBZ/hq41glZh1K5hkhYddYA+E=----ATTACHMENT:----MjYyNDYxMTQxNTE3MTU1NiA1NDM2NzMyNDYxMTgwMjQ2IDI5NTU2NzgwNTE4MjcxOTI=