public function addInsert($document) { $this->document[] = ['type' => 'insert', 'document' => $document]; return $this; }