public static function onItem(Form $aggregate, string $itemUuid, callable $callable): void
    {
        foreach ($aggregate->items as &$item) {
            if ($c = self::getMatching($item, $itemUuid, $callable, $aggregate->items)) {
                return;
            }
        }
    }
public static function onItem(Form $aggregate, string $itemUuid, callable $callable): void
    {
        foreach ($aggregate->items as &$item) {
            if ($c = self::getMatching($item, $itemUuid, $callable, $aggregate->items)) {
                return;
            }
        }
    }
public static function onItem ( Form $ aggregate , string $ itemUuid , callable $ callable ) : void { foreach ( $ aggregate -> items as & $ item ) { if ( $ c = self :: getMatching ( $ item , $ itemUuid , $ callable , $ aggregate -> items ) ) { return ; } } }
Executes a function on a matching item.

@param Form     $aggregate
@param string   $itemUuid
@param callable $callable
Executes a function on a matching item .