-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLevelInterface.php
More file actions
31 lines (24 loc) · 701 Bytes
/
LevelInterface.php
File metadata and controls
31 lines (24 loc) · 701 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
declare(strict_types=1);
namespace SonsOfPHP\Contract\Logger;
/**
* @author Joshua Estes <joshua@sonsofphp.com>
*/
interface LevelInterface
{
/**
* Returns the name of the log level
*
* The log name should be returned in all upercase
*
* This is the same value when `__toString` is called
*/
public function getName(): string;
/**
* Returns true if the log levels are equal to each other
*/
public function equals(LevelInterface $level): bool;
public function includes(LevelInterface $level): bool;
public function isHigherThan(LevelInterface $level): bool;
public function isLowerThan(LevelInterface $level): bool;
}