Jackalope\Version\Version::getLinearSuccessor PHP 메소드

getLinearSuccessor() 공개 메소드

{@inheritDoc}
public getLinearSuccessor ( )
    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');
    }