ama-team/php-projection-framework

View on GitHub
src/API/Conversion/ListenerInterface.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace AmaTeam\Image\Projection\API\Conversion;

use AmaTeam\Image\Projection\API\SpecificationInterface;
use AmaTeam\Image\Projection\API\Tile\TileInterface;

/**
 * Listeners allows to receive tile and create some side effect based on it -
 * create log message, notify build system, persist tile to disk.
 */
interface ListenerInterface
{
    /**
     * @param TileInterface $tile
     * @param SpecificationInterface $specification
     * @return void
     */
    public function accept(
        TileInterface $tile,
        SpecificationInterface $specification
    );
}