src/Database/Kernel.php
/**
	 * Closes the database instance with the given name, or all instances if no name is provided.
	 *
	 * @param string|null $name
	 * @return bool
	 */
Closes the database instance with the given name, or all instances if no name is provided.
@param string|null $name
@return bool
Closes the database instance with the given name or all instances if no name is provided . @param string|null $name @return bool
public function close($name = null) {
		if (is_null($name)) {
			foreach ($this->databases as $database) {
				$database->close();
			}
			return true;
		}
		if (isset($this->databases[$name])) {
			$this->databases[$name]->close();
			return true;
		}
		return false;
	}
public function close ( $ name = null ) { if ( is_null ( $ name ) ) { foreach ( $ this -> databases as $ database ) { $ database -> close ( ) ; } return true ; } if ( isset ( $ this -> databases [ $ name ] ) ) { $ this -> databases [ $ name ] -> close ( ) ; return true ; } return false ; }
Closes the database instance with the given name, or all instances if no name is provided.
Closes the database instance with the given name or all instances if no name is provided .