버전 1.9에 추가 되었습니다.
정의
Return Values
collection 유형입니다. 이는 listCollections 명령 회신에서 반환된 type 필드에 해당합니다.
예시
$db = (new MongoDB\Client)->test;
$db->createCollection('myCollection');
// Retrieves the collection typeforeach ($db->listCollections(['filter' => ['name' => 'myCollection']]) as $info) { echo $info->getType();}이 경우 출력은 다음과 유사합니다:
collection다음도 참조하세요.
MongoDB 매뉴얼의 listCollections 명령 참조