Example #1
0
 public function signton() : Connection
 {
     if (is_null(static::$connection)) {
         $this->setDatabaseConfigure();
         $driver = $this->getDriver();
         $configure = new Configuration($this->debug);
         $configure->setParameters($this->configure);
         static::$connection = new Connection($driver, $configure);
     }
     static::$connection->setTable($this->table);
     return static::$connection;
 }