original_string: protected function getVersion($version)
      {
          if (!$this->{$version.'Version'}) {
              $revisioned = get_class($this->revisioned);
  
              $revision = new $revisioned();
              $revision->setRawAttributes($this->{$version});
  
              $this->{$version.'Version'} = $revision;
          }
  
          return $this->{$version.'Version'};
      }
code: protected function getVersion($version)
      {
          if (!$this->{$version.'Version'}) {
              $revisioned = get_class($this->revisioned);
  
              $revision = new $revisioned();
              $revision->setRawAttributes($this->{$version});
  
              $this->{$version.'Version'} = $revision;
          }
  
          return $this->{$version.'Version'};
      }
code_tokens: protected function getVersion ( $ version ) { if ( ! $ this -> { $ version . 'Version' } ) { $ revisioned = get_class ( $ this -> revisioned ) ; $ revision = new $ revisioned ( ) ; $ revision -> setRawAttributes ( $ this -> { $ version } ) ; $ this -> { $ version . 'Version' } = $ revision ; } return $ this -> { $ version . 'Version' } ; }
docstring: Get revisioned model with appropriate attributes.
  
  @return \Illuminate\Database\Eloquent\Model
docstring_tokens: Get revisioned model with appropriate attributes .