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\Interface;
11
12interface FunctionalCollectionInterface
13{
14    public function map(callable $fn): static;
15
16    public function filter(callable $fn): static;
17
18    public function reduce(callable $fn, mixed $initial): mixed;
19
20    public function each(callable $fn): void;
21}