-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5fe5b63
commit 7d10a30
Showing
4 changed files
with
36 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
|
||
namespace SilverStripe\Versioned; | ||
|
||
use SilverStripe\ORM\DataObject; | ||
|
||
/** | ||
* Interface RecursiveStagesInterface | ||
* | ||
* Interface for @see RecursiveStagesService to provide the capability to for "smart" durty model state | ||
* which can cover nested models | ||
*/ | ||
interface RecursiveStagesInterface | ||
{ | ||
|
||
/** | ||
* Determine if content differs on stages including nested objects | ||
* | ||
* @param DataObject $object | ||
* @param string $mode | ||
* @return bool | ||
*/ | ||
public function stagesDifferRecursive(DataObject $object, string $mode): bool; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters