Initial import from aternosorg/codex-minecraft
This commit is contained in:
24
src/Log/LevelInterface.php
Normal file
24
src/Log/LevelInterface.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace Aternos\Codex\Log;
|
||||
|
||||
use JsonSerializable;
|
||||
|
||||
interface LevelInterface extends JsonSerializable
|
||||
{
|
||||
/**
|
||||
* @param string $level
|
||||
* @return LevelInterface
|
||||
*/
|
||||
public static function fromString(string $level): LevelInterface;
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function asString(): string;
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function asInt(): int;
|
||||
}
|
||||
Reference in New Issue
Block a user