19declare(strict_types=1);
28trait isInterchangeableItemTrait
30 public function hasChanged(): bool
32 $serialized_parent = $this->getParent()->serialize();
33 if ($this instanceof isTopItem) {
34 return $serialized_parent !==
'';
36 if ($this instanceof isChild) {
37 return $serialized_parent ===
'';