SilverStripe\Snapshots\RelationDiffer
Synopsis
class RelationDiffer
{
- // members
- private $relationClass;
- private $relationType;
- private array $previousVersionMapping = ;
- private array $currentVersionMapping = ;
- private array $added = ;
- private array $removed = ;
- private array $changed = ;
- // methods
- public void __construct()
- private void diff()
- public bool hasChanges()
- public array getRecords()
- public string getRelationClass()
- public string getRelationType()
- public array getAdded()
- public array getRemoved()
- public array getChanged()
- public bool isAdded()
- public bool isRemoved()
- public bool isChanged()
Hierarchy
Uses
- SilverStripe\Core\Injector\Injectable
Members
private
- $added — array
- $changed — array
- $currentVersionMapping — array
- $previousVersionMapping — array
- $relationClass — string
- $relationType — string
- $removed — array
Methods
private
public
- __construct() — RelationDiffer constructor.
- getAdded()
- getChanged()
- getRecords()
- getRelationClass()
- getRelationType()
- getRemoved()
- hasChanges()
- isAdded()
- isChanged()
- isRemoved()