public function first()
    {
        $this->rewind();
        $document = $this->getCursor()->current();

        if (!$document) {
            return;
        }

        return $this->getAssembler()->assemble($document, $this->entitySchema);
    }
public function first()
    {
        $this->rewind();
        $document = $this->getCursor()->current();

        if (!$document) {
            return;
        }

        return $this->getAssembler()->assemble($document, $this->entitySchema);
    }
public function first ( ) { $ this -> rewind ( ) ; $ document = $ this -> getCursor ( ) -> current ( ) ; if ( ! $ document ) { return ; } return $ this -> getAssembler ( ) -> assemble ( $ document , $ this -> entitySchema ) ; }
Returns the first element of the cursor.

@return mixed
Returns the first element of the cursor .