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'};
    }
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'};
    }
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' } ; }
Get revisioned model with appropriate attributes.

@return \Illuminate\Database\Eloquent\Model
Get revisioned model with appropriate attributes .