Merge pull request #201 from ihor/undoable-command-interface-fix

Extend UndoableCommandInterface from CommandInterface
This commit is contained in:
Dominik Liebler
2016-01-22 10:44:39 +01:00
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ namespace DesignPatterns\Behavioral\Command;
* This concrete command tweaks receiver to add current date to messages
* invoker just knows that it can call "execute".
*/
class AddMessageDateCommand implements CommandInterface, UndoableCommandInterface
class AddMessageDateCommand implements UndoableCommandInterface
{
/**
* @var Receiver

View File

@ -5,7 +5,7 @@ namespace DesignPatterns\Behavioral\Command;
/**
* Interface UndoableCommandInterface.
*/
interface UndoableCommandInterface
interface UndoableCommandInterface extends CommandInterface
{
/**
* This method is used to undo change made by command execution