delete child elements

This commit is contained in:
Yisroel Baum 2026-06-21 22:13:59 +03:00
parent ac0f404fce
commit f4b42973cb
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
10 changed files with 271 additions and 17 deletions

View file

@ -42,6 +42,11 @@ class FakeElementRepository implements ElementRepository
return $this->cloneElement($updatedElement);
}
public function delete(Element $element): void
{
unset($this->elementsById[$element->getId()]);
}
public function find(int $id): ?Element
{
if (! isset($this->elementsById[$id])) {