mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-06-23 09:43:27 +02:00
Merge pull request #201 from ihor/undoable-command-interface-fix
Extend UndoableCommandInterface from CommandInterface
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user