-
Notifications
You must be signed in to change notification settings - Fork 2
/
InsightInterface.php
78 lines (67 loc) · 1.52 KB
/
InsightInterface.php
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<?php
namespace Aternos\Codex\Analysis;
use Aternos\Codex\Log\EntryInterface;
use JsonSerializable;
/**
* Interface InsightInterface
*
* @package Aternos\Codex\Analysis
*/
interface InsightInterface extends JsonSerializable
{
/**
* Get a human-readable message
*
* @return string
*/
public function getMessage(): string;
/**
* @return string
*/
public function __toString(): string;
/**
* Set the related entry
*
* @param EntryInterface $entry
* @return $this
*/
public function setEntry(EntryInterface $entry): static;
/**
* Get the related entry
*
* @return EntryInterface
*/
public function getEntry(): EntryInterface;
/**
* Check if the $insight object is equal with the current object
*
* @param InsightInterface $insight
* @return bool
*/
public function isEqual(InsightInterface $insight): bool;
/**
* Increase the counter for this insight
*
* @return $this
*/
public function increaseCounter(): static;
/**
* Get the current counter value
*
* @return int
*/
public function getCounterValue(): int;
/**
* Set the related analysis
*
* @param AnalysisInterface $analysis
* @return $this
*/
public function setAnalysis(AnalysisInterface $analysis): static;
/**
* Get the related analysis
*
* @return AnalysisInterface|null
*/
public function getAnalysis(): ?AnalysisInterface;
}