File tree Expand file tree Collapse file tree 2 files changed +28
-1
lines changed
Expand file tree Collapse file tree 2 files changed +28
-1
lines changed Original file line number Diff line number Diff line change 1717 * @author Baptiste Clavié <clavie.b@gmail.com>
1818 * @author Rémy Gazelot <rgazelot@gmail.com>
1919 */
20- abstract class AbstractChange
20+ abstract class AbstractChange implements ChangeInterface
2121{
2222 /** old state */
2323 private $ old ;
Original file line number Diff line number Diff line change 1+ <?php
2+ /**
3+ * This file is part of the Totem package
4+ *
5+ * For the full copyright and license information, please view the LICENSE file
6+ * that was distributed with this source code.
7+ *
8+ * @copyright Baptiste Clavié <clavie.b@gmail.com>
9+ * @license http://www.opensource.org/licenses/MIT-License MIT License
10+ */
11+
12+ namespace Totem ;
13+
14+ /**
15+ * Represent a change in a data, with both values (before and after it was modified)
16+ *
17+ * @author Baptiste Clavié <clavie.b@gmail.com>
18+ */
19+ interface ChangeInterface
20+ {
21+ /** @return mixed the data before it was changed */
22+ public function getOld ();
23+
24+ /** @return mixed the data after it was changed */
25+ public function getNew ();
26+ }
27+
You can’t perform that action at this time.
0 commit comments