AI エージェント向け: ドキュメントインデックスは https://www.mongodb.com/ja-jp/docs/llms.txt で利用できます。すべてのページの markdown バージョンは、いずれかの URL パスに .md を追加することで利用できます。
Docs Menu

MongoDB\GridFS\Bucket::getChunkSizeBytes()

1.2バージョン での変更。

MongoDB\GridFS\Bucket::getChunkSizeBytes()

このバケットのチャンク サイズをバイト単位で返します。

function getChunkSizeBytes(): integer

このバケットのチャンク サイズ(バイト単位)。

<?php
$bucket = (new MongoDB\Client)->test->selectGridFSBucket();
var_dump($bucket->getChunkSizeBytes());

出力は次のようになります。

int(261120)