public function getSchema() : Schema;
/** * BulkWrite constructor. * * @param HasSchemaInterface $entity */ public function __construct(HasSchemaInterface $entity) { $this->setBulkWrite(new MongoBulkWrite(['ordered' => false])); $this->schema = $entity->getSchema(); }