Skip to content

Commit

Permalink
Add Command/Mediator interface
Browse files Browse the repository at this point in the history
  • Loading branch information
Nigel Greenway committed Mar 26, 2015
1 parent a7f9212 commit 598140d
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/CommandInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php
/**
* This file is part of the nigelgreenway/demander package.
*
* (c) Nigel Greenway <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace Demander;

/**
* Interface for a Command Message
*
* @package Demander
* @author Nigel Greenway <[email protected]>
*/
interface CommandInterface
{
}
29 changes: 29 additions & 0 deletions src/CommandMediatorInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?php
/**
* This file is part of the nigelgreenway/demander package.
*
* (c) Nigel Greenway <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace Demander;

/**
* Interface for the command mediator
*
* @package Demander
* @author Nigel Greenway <[email protected]>
*/
interface CommandMediatorInterface
{
/**
* Dispatch a command
*
* @param CommandInterface $command
*
* @return void
*/
public function request(CommandInterface $command);
}

0 comments on commit 598140d

Please sign in to comment.