mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-09 17:36:22 +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
|
* This concrete command tweaks receiver to add current date to messages
|
||||||
* invoker just knows that it can call "execute".
|
* invoker just knows that it can call "execute".
|
||||||
*/
|
*/
|
||||||
class AddMessageDateCommand implements CommandInterface, UndoableCommandInterface
|
class AddMessageDateCommand implements UndoableCommandInterface
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var Receiver
|
* @var Receiver
|
||||||
|
@ -5,7 +5,7 @@ namespace DesignPatterns\Behavioral\Command;
|
|||||||
/**
|
/**
|
||||||
* Interface UndoableCommandInterface.
|
* Interface UndoableCommandInterface.
|
||||||
*/
|
*/
|
||||||
interface UndoableCommandInterface
|
interface UndoableCommandInterface extends CommandInterface
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* This method is used to undo change made by command execution
|
* This method is used to undo change made by command execution
|
||||||
|
Reference in New Issue
Block a user