Config   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 9
c 1
b 0
f 0
dl 0
loc 15
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getDbConfig() 0 3 1
1
<?php
2
3
/**
4
 * Config
5
 * Clase para obtener la configuración de la base de datos
6
 * @author nelson rojas
7
 */
8
class Config
9
{
10
	private static $_db_config = [
11
		'dsn' => "mysql:host=DB_HOST;dbname=DB_NAME;charset=utf8",
12
		'user' => "USER_NAME",
13
		'password' => "USER_PASSWORD",
14
		'parameters' => [
15
			PDO::ATTR_PERSISTENT => true, 
16
		    PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
17
		]
18
	];
19
20
	public static function getDbConfig()
21
	{
22
		return self::$_db_config;
23
	}
24
25
}