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
3// ╔════════════════════════════════════════════════════════════╗
4// ║ MIT Licence (#Expat) - https://opensource.org/licenses/MIT ║
5// ║ Copyright 2026 Frederic Poeydomenge <dyno@phexium.com>     ║
6// ╚════════════════════════════════════════════════════════════╝
7
8declare(strict_types=1);
9
10namespace Phexium\Domain\Collection;
11
12use Countable;
13use IteratorAggregate;
14use Phexium\Domain\Collection\Interface\FunctionalCollectionInterface;
15use Phexium\Domain\Collection\Interface\MutableCollectionInterface;
16use Phexium\Domain\Collection\Interface\NavigableCollectionInterface;
17use Phexium\Domain\Collection\Interface\ReadableCollectionInterface;
18use Phexium\Domain\Collection\Interface\SearchableCollectionInterface;
19use Phexium\Domain\Collection\Interface\TransformableCollectionInterface;
20
21interface CollectionInterface extends Countable, IteratorAggregate, ReadableCollectionInterface, NavigableCollectionInterface, MutableCollectionInterface, FunctionalCollectionInterface, SearchableCollectionInterface, TransformableCollectionInterface
22{
23    public static function fromArray(array $collection): static;
24
25    public static function fromMap(array $collection, callable $fn): static;
26}