Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| 1 | <?php |
| 2 | namespace Apie\Core\Lists; |
| 3 | |
| 4 | use ArrayAccess; |
| 5 | use Countable; |
| 6 | use IteratorAggregate; |
| 7 | use JsonSerializable; |
| 8 | |
| 9 | /** |
| 10 | * @template T |
| 11 | * @extends ArrayAccess<int, T> |
| 12 | * @extends IteratorAggregate<int, T> |
| 13 | */ |
| 14 | interface ItemListInterface extends ArrayAccess, JsonSerializable, Countable, IteratorAggregate, Arrayable |
| 15 | { |
| 16 | /** |
| 17 | * @param int $offset |
| 18 | * @return T |
| 19 | */ |
| 20 | public function offsetGet(mixed $offset): mixed; |
| 21 | /** |
| 22 | * @param int|null $offset |
| 23 | * @param T $value |
| 24 | */ |
| 25 | public function offsetSet(mixed $offset, mixed $value): void; |
| 26 | |
| 27 | /** |
| 28 | * @return array<int, T> |
| 29 | */ |
| 30 | public function jsonSerialize(): array; |
| 31 | } |