Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/AbstractChange.php
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -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();
}