芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/.trash/cepali/cache/stores/mongodb/MongoDB/Model/DatabaseInfo.php
info = $info; } /** * Return the collection 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() { 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 */ 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 */ public function offsetGet($key) { return $this->info[$key]; } /** * Not supported. * * @see http://php.net/arrayaccess.offsetset * @throws BadMethodCallException */ public function offsetSet($key, $value) { throw BadMethodCallException::classIsImmutable(__CLASS__); } /** * Not supported. * * @see http://php.net/arrayaccess.offsetunset * @throws BadMethodCallException */ public function offsetUnset($key) { throw BadMethodCallException::classIsImmutable(__CLASS__); } }