xprt64/cqrs-es

View on GitHub
src/Dudulina/Command/CommandValidation/CommandValidatorSubscriber.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
/******************************************************************************
 * Copyright (c) 2016 Constantin Galbenu <gica.galbenu@gmail.com>             *
 ******************************************************************************/

namespace Dudulina\Command\CommandValidation;

use Dudulina\Command;
use Dudulina\Command\Exception\CommandHandlerNotFound;
use Dudulina\Command\ValueObject\CommandHandlerDescriptor;

interface CommandValidatorSubscriber
{
    /**
     * @param Command $command
     * @return CommandHandlerDescriptor[]
     * @throws CommandHandlerNotFound
     */
    public function getHandlersForCommand(Command $command);
}