mirror of
https://github.com/BookStackApp/BookStack.git
synced 2026-02-25 11:19:39 +03:00
Added core wiring in the cloning logic, just need to implement core logic in the updater now.
20 lines
432 B
PHP
20 lines
432 B
PHP
<?php
|
|
|
|
namespace BookStack\References;
|
|
|
|
use BookStack\Entities\Models\Entity;
|
|
|
|
class ReferenceChangeContext
|
|
{
|
|
/**
|
|
* Entity pairs where the first is the old entity and the second is the new entity.
|
|
* @var array<array{0: Entity, 1: Entity}>
|
|
*/
|
|
protected array $changes = [];
|
|
|
|
public function add(Entity $oldEntity, Entity $newEntity): void
|
|
{
|
|
$this->changes[] = [$oldEntity, $newEntity];
|
|
}
|
|
}
|