MaxGoryunov/saving-iterator

View on GitHub
src/Indifferent.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace MaxGoryunov\SavingIterator\Src;

/**
 * Interface for objects on which any methods can be called.
 * @template T of object
 * @mixin T
 */
interface Indifferent
{

    /**
     * Returns result of any called method.
     *
     * @param string       $name
     * @param array<mixed> $arguments
     * @return mixed
     */
    public function __call(string $name, array $arguments): mixed;
}