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