Dsn
in package
FinalYes
Tags
Table of Contents
Properties
Methods
- __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|null $user = null ][, string|null $password = null ][, int|null $port = null ][, array<string|int, mixed> $options = [] ]) : mixed
Parameters
- $scheme : string
- $host : string
- $user : string|null = null
- $password : string|null = null
- $port : int|null = 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|null $default = null ]) : int|null
Parameters
- $default : int|null = null
Return values
int|nullgetScheme()
public
getScheme() : string
Return values
stringgetUser()
public
getUser() : string|null