src/Awjudd/Revisable/Revisable.php
public function getRevisionNumber($revisionNumber, $columnList = array('*'))
    {
        $query = $this->deriveRevisions();

        if($revisionNumber > 1)
        {
            // Skip ahead to where we need to be
            $query->skip($revisionNumber - 1)->take(1);
        }

        return $query->get($columnList)->first();
    }
public function getRevisionNumber($revisionNumber, $columnList = array('*'))
    {
        $query = $this->deriveRevisions();

        if($revisionNumber > 1)
        {
            // Skip ahead to where we need to be
            $query->skip($revisionNumber - 1)->take(1);
        }

        return $query->get($columnList)->first();
    }
public function getRevisionNumber ( $ revisionNumber , $ columnList = array ( '*' ) ) { $ query = $ this -> deriveRevisions ( ) ; if ( $ revisionNumber > 1 ) { // Skip ahead to where we need to be $ query -> skip ( $ revisionNumber - 1 ) -> take ( 1 ) ; } return $ query -> get ( $ columnList ) -> first ( ) ; }
Gets a single revision from the list.

@param int $revisionNumber The revision number to retrieve
@param array $columnList The list of columns to retrieve
@return array
Gets a single revision from the list .