1
0
mirror of https://github.com/DesignPatternsPHP/DesignPatternsPHP.git synced 2025-07-11 18:36:21 +02:00

Extended UndoableCommandInterface from CommandInterface

This commit is contained in:
Ihor Burlachenko
2016-01-21 22:46:28 +01:00
parent be12454fef
commit 8a9872a6f5
2 changed files with 2 additions and 2 deletions

@ -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

@ -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