芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/giga.mgaplay.com.br/vendor/mongodb/mongodb/src/Model/DatabaseInfo.php
info = $info; } /** * Return the database info as an array. * * @see http://php.net/oop5.magic#language.oop5.magic.debuginfo * @return array */ public function __debugInfo() { return $this->info; } /** * Return the database name. * * @return string */ public function getName() { return (string) $this->info['name']; } /** * Return the databases size on disk (in bytes). * * @return integer */ public function getSizeOnDisk() { /* The MongoDB server might return this number as an integer or float */ return (integer) $this->info['sizeOnDisk']; } /** * Return whether the database is empty. * * @return boolean */ public function isEmpty() { return (boolean) $this->info['empty']; } /** * Check whether a field exists in the database information. * * @see http://php.net/arrayaccess.offsetexists * @param mixed $key * @return boolean */ #[ReturnTypeWillChange] public function offsetExists($key) { return array_key_exists($key, $this->info); } /** * Return the field's value from the database information. * * @see http://php.net/arrayaccess.offsetget * @param mixed $key * @return mixed */ #[ReturnTypeWillChange] public function offsetGet($key) { return $this->info[$key]; } /** * Not supported. * * @see http://php.net/arrayaccess.offsetset * @param mixed $key * @param mixed $value * @throws BadMethodCallException * @return void */ #[ReturnTypeWillChange] public function offsetSet($key, $value) { throw BadMethodCallException::classIsImmutable(self::class); } /** * Not supported. * * @see http://php.net/arrayaccess.offsetunset * @param mixed $key * @throws BadMethodCallException * @return void */ #[ReturnTypeWillChange] public function offsetUnset($key) { throw BadMethodCallException::classIsImmutable(self::class); } }