phplrt/phplrt

View on GitHub
libs/visitor/src/ExecutorInterface.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

declare(strict_types=1);

namespace Phplrt\Visitor;

interface ExecutorInterface
{
    /**
     * Traverses an array of nodes using the registered visitors.
     *
     * @param iterable<array-key, object> $nodes List of nodes.
     *
     * @return iterable<array-key, object> Traversed list of nodes
     */
    public function execute(iterable $nodes): iterable;
}