public function version($versionId, $reset = false)
    {
        $versions = $this->versions($reset);
        if (empty($versions[$versionId])) {
            return null;
        }

        return $versions[$versionId];
    }
public function version($versionId, $reset = false)
    {
        $versions = $this->versions($reset);
        if (empty($versions[$versionId])) {
            return null;
        }

        return $versions[$versionId];
    }
public function version ( $ versionId , $ reset = false ) { $ versions = $ this -> versions ( $ reset ) ; if ( empty ( $ versions [ $ versionId ] ) ) { return null ; } return $ versions [ $ versionId ] ; }
Retrieves a specified version for the current entity

@param int $versionId The version number to retrieve
@param bool $reset If true, will re-retrieve the related version collection
@return \Cake\ORM\Entity|null
Retrieves a specified version for the current entity