original_string: public function version($versionId, $reset = false)
      {
          $versions = $this->versions($reset);
          if (empty($versions[$versionId])) {
              return null;
          }
  
          return $versions[$versionId];
      }
code: public function version($versionId, $reset = false)
      {
          $versions = $this->versions($reset);
          if (empty($versions[$versionId])) {
              return null;
          }
  
          return $versions[$versionId];
      }
code_tokens: public function version ( $ versionId , $ reset = false ) { $ versions = $ this -> versions ( $ reset ) ; if ( empty ( $ versions [ $ versionId ] ) ) { return null ; } return $ versions [ $ versionId ] ; }
docstring: 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
docstring_tokens: Retrieves a specified version for the current entity