DatabaseProperties
in package
Expects the following environment variables to be set by the OS:
MYSQL_HOST MYSQL_USER MYSQL_DATABASE MYSQL_PASSWORD_FILE
Table of Contents
Properties
Methods
- __construct() : mixed
- getFromEnv() : string
- getFromFile() : string
Properties
$database read-only
public
string
$database
$host read-only
public
string
$host
$password read-only
public
string
$password
$user read-only
public
string
$user
Methods
__construct()
public
__construct() : mixed
getFromEnv()
private
getFromEnv(string $name) : string
Parameters
- $name : string
Return values
stringgetFromFile()
private
getFromFile(string $file) : string
Parameters
- $file : string