19declare(strict_types=1);
29trait isInterchangeableItemTrait
31 public function hasChanged() : bool
33 $serialized_parent = $this->getParent()->serialize();
34 if ($this instanceof isTopItem) {
35 return $serialized_parent !==
'';
36 } elseif ($this instanceof isChild) {
37 return $serialized_parent ===
'';
An exception for terminatinating execution or to throw for unit testing.
Class NullIdentification.