Initial import from aternosorg/codex-minecraft
Some checks failed
Tests / Run tests on PHP v8.4 (push) Failing after 32s
Tests / Run tests on PHP v8.5 (push) Failing after 2s

This commit is contained in:
2026-04-30 09:56:57 -05:00
commit 7c7fe5ca80
94 changed files with 7003 additions and 0 deletions

View File

@@ -0,0 +1,67 @@
<?php
namespace Aternos\Codex\Log;
use ArrayAccess;
use Countable;
use Iterator;
use JsonSerializable;
/**
* Interface EntryInterface
*
* @package Aternos\Codex\Log
*/
interface EntryInterface extends Iterator, Countable, ArrayAccess, JsonSerializable
{
/**
* Set all lines at once in an array replacing the current lines
*
* @param LineInterface[] $lines
* @return $this
*/
public function setLines(array $lines = []): static;
/**
* Add a line
*
* @param LineInterface $line
* @return $this
*/
public function addLine(LineInterface $line): static;
/**
* Get all lines
*
* @return LineInterface[]
*/
public function getLines(): array;
/**
* @return string
*/
public function __toString(): string;
/**
* Return the current element
*
* @return LineInterface
*/
public function current(): LineInterface;
/**
* Offset to set
*
* @param mixed $offset
* @param LineInterface $value
*/
public function offsetSet(mixed $offset, mixed $value): void;
/**
* Offset to retrieve
*
* @param mixed $offset
* @return LineInterface
*/
public function offsetGet(mixed $offset): LineInterface;
}