Mongolid\Cursor\EmbeddedCursor::all PHP 메소드

all() 공개 메소드

Convert the cursor instance to an array of Items.
public all ( ) : array
리턴 array
    public function all() : array
    {
        foreach ($this as $item) {
            $results[] = $item;
        }
        return $results ?? [];
    }