Classes/Flow2Lab/EventSourcing/Command/Handler/CommandHandlerInterface.php
<?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);
}