/**
  * Constructor.
  *
  * @param WriteResult $writeResult
  * @param mixed[]     $insertedIds
  */
 public function __construct(WriteResult $writeResult, array $insertedIds)
 {
     $this->writeResult = $writeResult;
     $this->insertedIds = $insertedIds;
     $this->isAcknowledged = $writeResult->isAcknowledged();
 }
 /**
  * Constructor.
  *
  * @param WriteResult $writeResult
  */
 public function __construct(WriteResult $writeResult)
 {
     $this->writeResult = $writeResult;
     $this->isAcknowledged = $writeResult->isAcknowledged();
 }