Mongolid\Cursor\EmbeddedCursor::first PHP Method

first() public method

Returns the first element of the cursor.
public first ( ) : mixed
return mixed
    public function first()
    {
        $this->rewind();
        return $this->current();
    }