public function loadVersionInfo(ContentInfo $contentInfo, $versionNo = null)
    {
        return $this->loadVersionInfoById($contentInfo->id, $versionNo);
    }
public function loadVersionInfo(ContentInfo $contentInfo, $versionNo = null)
    {
        return $this->loadVersionInfoById($contentInfo->id, $versionNo);
    }
public function loadVersionInfo ( ContentInfo $ contentInfo , $ versionNo = null ) { return $ this -> loadVersionInfoById ( $ contentInfo -> id , $ versionNo ) ; }
Loads a version info of the given content object.

If no version number is given, the method returns the current version

@throws \eZ\Publish\API\Repository\Exceptions\NotFoundException - if the version with the given number does not exist
@throws \eZ\Publish\API\Repository\Exceptions\UnauthorizedException if the user is not allowed to load this version

@param \eZ\Publish\API\Repository\Values\Content\ContentInfo $contentInfo
@param int $versionNo the version number. If not given the current version is returned.

@return \eZ\Publish\API\Repository\Values\Content\VersionInfo
Loads a version info of the given content object .