Cake\Database\Connection::__debugInfo PHP Method

__debugInfo() public method

Returns an array that can be used to describe the internal state of this object.
public __debugInfo ( ) : array
return array
    public function __debugInfo()
    {
        $secrets = ['password' => '*****', 'username' => '*****', 'host' => '*****', 'database' => '*****', 'port' => '*****'];
        $replace = array_intersect_key($secrets, $this->_config);
        $config = $replace + $this->_config;
        return ['config' => $config, 'driver' => $this->_driver, 'transactionLevel' => $this->_transactionLevel, 'transactionStarted' => $this->_transactionStarted, 'useSavePoints' => $this->_useSavePoints, 'logQueries' => $this->_logQueries, 'logger' => $this->_logger];
    }