17 lines
351 B
PHP
17 lines
351 B
PHP
<?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());
|
|
}
|
|
} |