-
Notifications
You must be signed in to change notification settings - Fork 2
/
EntryInterface.php
67 lines (58 loc) · 1.26 KB
/
EntryInterface.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
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;
}