src/OptionDbTrait.php
public function setDatabase ($name, $user, $pass, $host = 'localhost', $port = 3306)
    {
        $this->database['name'] = $name;
        $this->database['user'] = $user;
        $this->database['pass'] = $pass;
        $this->database['host'] = $host;
        $this->database['port'] = $port;

        return $this;
    }
public function setDatabase ($name, $user, $pass, $host = 'localhost', $port = 3306)
    {
        $this->database['name'] = $name;
        $this->database['user'] = $user;
        $this->database['pass'] = $pass;
        $this->database['host'] = $host;
        $this->database['port'] = $port;

        return $this;
    }
public function setDatabase ( $ name , $ user , $ pass , $ host = 'localhost' , $ port = 3306 ) { $ this -> database [ 'name' ] = $ name ; $ this -> database [ 'user' ] = $ user ; $ this -> database [ 'pass' ] = $ pass ; $ this -> database [ 'host' ] = $ host ; $ this -> database [ 'port' ] = $ port ; return $ this ; }
Set the database details

@return $this
Set the database details