Definition
Return Values
The total size of the database file on disk in bytes.
Examples
$info = new DatabaseInfo(['sizeOnDisk' => 1048576]); var_dump($info->getSizeOnDisk()); 
The output would then resemble:
int(1048576) 
See Also
listDatabases command reference in the MongoDB manual