mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-06 08:15:36 +08:00
18 lines
256 B
PHP
18 lines
256 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
|
||
|
|
namespace ZM\MySQL;
|
||
|
|
|
||
|
|
|
||
|
|
class MySQLWrapper
|
||
|
|
{
|
||
|
|
public $connection;
|
||
|
|
|
||
|
|
public function __construct() {
|
||
|
|
$this->connection = MySQLManager::getConnection();
|
||
|
|
}
|
||
|
|
|
||
|
|
public function __destruct() {
|
||
|
|
$this->connection->close();
|
||
|
|
}
|
||
|
|
}
|