Jackalope\Version\Version::getSuccessors PHP Method

getSuccessors() public method

{@inheritDoc}
public getSuccessors ( )
    public function getSuccessors()
    {
        /* successor is a multivalue property with REFERENCE.
         * get it as string so we can create the Version instances from uuid
         * with the objectManager
         */
        $successors = $this->getProperty("jcr:successors")->getString();
        $results = array();
        foreach ($successors as $uuid) {
            // OPTIMIZE: use objectManager->getNodes instead of looping
            $results[] = $this->objectManager->getNodeByIdentifier($uuid, 'Version\\Version');
        }
        return $results;
    }