Jackalope\Version\VersionHistory::getAllVersions PHP Method

getAllVersions() public method

{@inheritDoc}
public getAllVersions ( )
    public function getAllVersions()
    {
        // OPTIMIZE: special iterator that delays loading the versions
        if (!$this->versions) {
            $rootVersion = $this->getRootVersion();
            $results = array($rootVersion->getName() => $rootVersion);
            $this->versions = array_merge($results, $this->getEventualSuccessors($rootVersion));
        }
        return new ArrayIterator($this->versions);
    }