Dsn
in package
Tags
Table of Contents
- $host : mixed
- $options : mixed
- $password : mixed
- $port : mixed
- $scheme : mixed
- $user : mixed
- __construct() : mixed
- fromString() : self
- getHost() : string
- getOption() : mixed
- getPassword() : string|null
- getPort() : int|null
- getScheme() : string
- getUser() : string|null
Properties
$host
private
mixed
$host
$options
private
mixed
$options
$password
private
mixed
$password
$port
private
mixed
$port
$scheme
private
mixed
$scheme
$user
private
mixed
$user
Methods
__construct()
public
__construct(string $scheme, string $host[, string $user = null ][, string $password = null ][, int $port = null ][, array<string|int, mixed> $options = [] ]) : mixed
Parameters
- $scheme : string
- $host : string
- $user : string = null
- $password : string = null
- $port : int = null
- $options : array<string|int, mixed> = []
Return values
mixed —fromString()
public
static fromString(string $dsn) : self
Parameters
- $dsn : string
Return values
self —getHost()
public
getHost() : string
Return values
string —getOption()
public
getOption(string $key[, mixed $default = null ]) : mixed
Parameters
- $key : string
- $default : mixed = null
Return values
mixed —getPassword()
public
getPassword() : string|null
Return values
string|null —getPort()
public
getPort([int $default = null ]) : int|null
Parameters
- $default : int = null
Return values
int|null —getScheme()
public
getScheme() : string
Return values
string —getUser()
public
getUser() : string|null