88 - Added undo example for command pattern

This commit is contained in:
Andrew Nester
2016-01-16 17:06:43 +03:00
parent 4904def390
commit dddfdf65fc
5 changed files with 141 additions and 2 deletions

View File

@@ -0,0 +1,15 @@
<?php
namespace DesignPatterns\Behavioral\Command;
/**
* Interface UndoableCommandInterface.
*/
interface UndoableCommandInterface
{
/**
* This method is used to undo change made by command execution
* The Receiver goes in the constructor.
*/
public function undo();
}