jeyroik/extas-api

View on GitHub
src/interfaces/stages/IStageApiUpdateData.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
namespace extas\interfaces\stages;

use extas\interfaces\IItem;
use extas\interfaces\routes\IRouteDispatcher;

interface IStageApiUpdateData
{
    public const NAME = 'extas.api.update';

    /**
     * @param IItem $item source item
     * @param array $data data for update
     * @param IRouteDispatcher $dispatcher
     * @return void
     */
    public function __invoke(IItem &$item, array $data, IRouteDispatcher $dispatcher): void;
}