Skip to content

Commit 2d0b193

Browse files
committed
add get title to log/-interface
1 parent 5450270 commit 2d0b193

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

src/Log/Log.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,4 +242,12 @@ public function jsonSerialize(): array
242242
"entries" => $this->getEntries()
243243
];
244244
}
245+
246+
/**
247+
* @inheritDoc
248+
*/
249+
public function getTitle(): string
250+
{
251+
return "Log";
252+
}
245253
}

src/Log/LogInterface.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,13 @@ public function setLogFile(LogFileInterface $logFile): static;
3838
*/
3939
public function getLogFile(): LogFileInterface;
4040

41+
/**
42+
* Get a human-readable title for the log
43+
*
44+
* @return string
45+
*/
46+
public function getTitle(): string;
47+
4148
/**
4249
* Parse a log file with a parser
4350
*

0 commit comments

Comments
 (0)