Initial import from aternosorg/codex-minecraft
This commit is contained in:
33
src/Log/AnalysableLogInterface.php
Normal file
33
src/Log/AnalysableLogInterface.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
namespace Aternos\Codex\Log;
|
||||
|
||||
use Aternos\Codex\Analyser\AnalyserInterface;
|
||||
use Aternos\Codex\Analysis\AnalysisInterface;
|
||||
|
||||
/**
|
||||
* Interface AnalysableLogInterface
|
||||
*
|
||||
* @package Aternos\Codex\Log
|
||||
*/
|
||||
interface AnalysableLogInterface
|
||||
{
|
||||
/**
|
||||
* Get the default analyser
|
||||
*
|
||||
* @return AnalyserInterface
|
||||
*/
|
||||
public static function getDefaultAnalyser(): AnalyserInterface;
|
||||
|
||||
/**
|
||||
* Analyse a log file with an analyser
|
||||
*
|
||||
* Every log type should have a default analyser,
|
||||
* but the $analyser argument can be used to override
|
||||
* the default analyser
|
||||
*
|
||||
* @param AnalyserInterface|null $analyser
|
||||
* @return AnalysisInterface
|
||||
*/
|
||||
public function analyse(?AnalyserInterface $analyser = null): AnalysisInterface;
|
||||
}
|
||||
Reference in New Issue
Block a user