MydbCredentials
in package
implements
MydbCredentialsInterface
Read onlyYes
Tags
Table of Contents
Interfaces
Properties
- $dbname : string
- $flags : int
- $host : string
- $passwd : string
- $port : int|null
- $socket : string|null
- $username : string
Methods
- __construct() : mixed
- Database credentials - hostname Can be either a host name or an IP address. Passing the null value or the string "localhost" to this parameter, the local host is assumed. When possible, pipes will be used instead of the TCP/IP protocol.
- getDbname() : string
- getFlags() : int
- getHost() : string
- getPasswd() : string
- getPort() : int|null
- getSocket() : string|null
- getUsername() : string
Properties
$dbname
protected
string
$dbname
$flags
protected
int
$flags
= 0
$host
protected
string
$host
$passwd
protected
string
$passwd
Attributes
- #[SensitiveParameter]
$port
protected
int|null
$port
= null
$socket
protected
string|null
$socket
= null
$username
protected
string
$username
Methods
__construct()
Database credentials - hostname Can be either a host name or an IP address. Passing the null value or the string "localhost" to this parameter, the local host is assumed. When possible, pipes will be used instead of the TCP/IP protocol.
public
__construct(string $host, string $username, string $passwd, string $dbname[, int|null $port = null ][, string|null $socket = null ][, int $flags = 0 ]) : mixed
Parameters
- $host : string
-
hostname or IP address
- $username : string
-
username
- $passwd : string
-
password
- $dbname : string
-
database name
- $port : int|null = null
-
port number
- $socket : string|null = null
-
socket or named pipe
- $flags : int = 0
-
connection flags
Tags
getDbname()
public
getDbname() : string
Attributes
- #[Override]
Return values
stringgetFlags()
public
getFlags() : int
Attributes
- #[Override]
Return values
intgetHost()
public
getHost() : string
Attributes
- #[Override]
Return values
stringgetPasswd()
public
getPasswd() : string
Attributes
- #[Override]
Return values
stringgetPort()
public
getPort() : int|null
Attributes
- #[Override]
Return values
int|nullgetSocket()
public
getSocket() : string|null
Attributes
- #[Override]
Return values
string|nullgetUsername()
public
getUsername() : string
Attributes
- #[Override]