Navigation
This version of the documentation is archived and no longer supported. To learn how to upgrade your version of PHP Library Manual, refer to the upgrade documentation.

MongoDB\Model\IndexInfo::getVersion()

Definition

MongoDB\Model\IndexInfo::getVersion

Return the index version.

function getVersion(): integer

Return Values

The index version.

Examples

<?php

$info = new IndexInfo([
    'v' => 1,
]);

var_dump($info->getVersion());

The output would then resemble:

int(1)

See Also