Skip to content

Commit

Permalink
Merge pull request #18 from Taluu/change-interface
Browse files Browse the repository at this point in the history
Fixes #17 : Add a ChangeInterface
  • Loading branch information
Taluu committed Jun 10, 2014
2 parents cad008b + b15174f commit 5b6994f
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/AbstractChange.php
Expand Up @@ -17,7 +17,7 @@
* @author Baptiste Clavié <clavie.b@gmail.com>
* @author Rémy Gazelot <rgazelot@gmail.com>
*/
abstract class AbstractChange
abstract class AbstractChange implements ChangeInterface
{
/** old state */
private $old;
Expand Down
27 changes: 27 additions & 0 deletions src/ChangeInterface.php
@@ -0,0 +1,27 @@
<?php
/**
* This file is part of the Totem package
*
* For the full copyright and license information, please view the LICENSE file
* that was distributed with this source code.
*
* @copyright Baptiste Clavié <clavie.b@gmail.com>
* @license http://www.opensource.org/licenses/MIT-License MIT License
*/

namespace Totem;

/**
* Represent a change in a data, with both values (before and after it was modified)
*
* @author Baptiste Clavié <clavie.b@gmail.com>
*/
interface ChangeInterface
{
/** @return mixed the data before it was changed */
public function getOld();

/** @return mixed the data after it was changed */
public function getNew();
}

0 comments on commit 5b6994f

Please sign in to comment.