Flow2Lab/EventSourcing

View on GitHub
Classes/Flow2Lab/EventSourcing/Command/Handler/CommandHandlerInterface.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
namespace Flow2Lab\EventSourcing\Command\Handler;

use Flow2Lab\EventSourcing\Command\Command;

interface CommandHandlerInterface
{

    /**
     * @param Command $command
     * @return boolean TRUE if the command handler can handle the command
     */
    public function canHandleCommand(Command $command);

    /**
     * @param Command $command
     * @return void
     */
    public function handle(Command $command);

}