This commit is contained in:
17
src/Api/Response/CodexLogResponse.php
Normal file
17
src/Api/Response/CodexLogResponse.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace Aternos\Mclogs\Api\Response;
|
||||
|
||||
use Aternos\Codex\Log\LogInterface;
|
||||
|
||||
class CodexLogResponse extends ApiResponse
|
||||
{
|
||||
public function __construct(protected LogInterface $codexLog)
|
||||
{
|
||||
}
|
||||
|
||||
public function jsonSerialize(): array
|
||||
{
|
||||
return array_merge(parent::jsonSerialize(), $this->codexLog->jsonSerialize());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user