public function getLinearSuccessor()
{
$successors = $this->getProperty('jcr:successors')->getString();
if (count($successors) > 1) {
// @codeCoverageIgnoreStart
throw new NotImplementedException('TODO: handle non-trivial case when there is a choice of successors to find the linear from');
// @codeCoverageIgnoreEnd
}
if (count($successors) === 0) {
return null;
// no successor
}
$uuid = reset($successors);
return $this->objectManager->getNodeByIdentifier($uuid, 'Version\\Version');
}