Commit 9f1aeb3 1 parent 0c4ea3e commit 9f1aeb3 Copy full SHA for 9f1aeb3
File tree 3 files changed +34
-0
lines changed
3 files changed +34
-0
lines changed Original file line number Diff line number Diff line change 14
14
15
15
namespace Konekt \History \Contracts ;
16
16
17
+ use DateTimeInterface ;
18
+
17
19
interface JobExecutionLog
18
20
{
19
21
public function getExecution (): JobExecution ;
22
+
23
+ public function getMessage (): string ;
24
+
25
+ public function getHappenedAt (): DateTimeInterface ;
26
+
27
+ public function getLevel (): string ;
28
+
29
+ public function getContext (): array ;
20
30
}
Original file line number Diff line number Diff line change 18
18
19
19
interface JobStatus extends EnumInterface
20
20
{
21
+ public function isActive (): bool ;
22
+
23
+ public function hasEnded (): bool ;
21
24
}
Original file line number Diff line number Diff line change 4
4
5
5
namespace Konekt \History \Models ;
6
6
7
+ use DateTimeInterface ;
7
8
use Illuminate \Database \Eloquent \Model ;
8
9
use Illuminate \Database \Eloquent \Relations \BelongsTo ;
9
10
use Illuminate \Support \Carbon ;
@@ -43,4 +44,24 @@ public function getExecution(): JobExecution
43
44
{
44
45
return $ this ->jobExecution ;
45
46
}
47
+
48
+ public function getMessage (): string
49
+ {
50
+ return $ this ->message ;
51
+ }
52
+
53
+ public function getHappenedAt (): DateTimeInterface
54
+ {
55
+ return $ this ->happened_at ;
56
+ }
57
+
58
+ public function getLevel (): string
59
+ {
60
+ return $ this ->level ;
61
+ }
62
+
63
+ public function getContext (): array
64
+ {
65
+ return $ this ->context ;
66
+ }
46
67
}
You can’t perform that action at this time.
0 commit comments