\Charcoal\SourceDatabaseSourceConfig

Source Config

Summary

Methods
Properties
Constants
defaults()
setType()
type()
setHostname()
hostname()
setUsername()
username()
setPassword()
password()
setDatabase()
database()
setDisableUtf8()
disableUtf8()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$type
$hostname
$username
$password
$database
$disableUtf8
N/A

Properties

$type

$type : string

Type

string

$hostname

$hostname : string

Type

string

$username

$username : string

Type

string

$password

$password : string

Type

string

$database

$database : string

Type

string

$disableUtf8

$disableUtf8 : boolean

Type

boolean

Methods

defaults()

defaults() : array

Returns

array

setType()

setType(string  $type) : \Charcoal\Source\SourceConfig

Parameters

string $type

The type of source.

Throws

\InvalidArgumentException

If parameter is not a string.

Returns

\Charcoal\Source\SourceConfig

Chainable

type()

type() : string

Returns

string

setHostname()

setHostname(string  $hostname) : \Charcoal\Source\DatabaseSourceConfig

Set hostname

Parameters

string $hostname

The database hostname.

Throws

\InvalidArgumentException

If hostname is not a string.

Returns

\Charcoal\Source\DatabaseSourceConfig

Chainable

hostname()

hostname() : string

Get hostname

Returns

string

setUsername()

setUsername(string  $username) : \Charcoal\Source\DatabaseSourceConfig

Set username

Parameters

string $username

The database username.

Throws

\InvalidArgumentException

If username is not a string.

Returns

\Charcoal\Source\DatabaseSourceConfig

Chainable

username()

username() : string

Get username

Returns

string

setPassword()

setPassword(string  $password) : \Charcoal\Source\DatabaseSourceConfig

Set password

Parameters

string $password

The database password.

Throws

\InvalidArgumentException

If password is not a string.

Returns

\Charcoal\Source\DatabaseSourceConfig

Chainable

password()

password() : string

Get password

Returns

string

setDatabase()

setDatabase(string  $database) : \Charcoal\Source\DatabaseSourceConfig

Set database

Parameters

string $database

The database name.

Throws

\InvalidArgumentException

If database is not a string.

Returns

\Charcoal\Source\DatabaseSourceConfig

Chainable

database()

database() : string

Get database

Returns

string

setDisableUtf8()

setDisableUtf8(boolean  $disableUtf8) : \Charcoal\Source\DatabaseSourceConfig

Parameters

boolean $disableUtf8

The "disable UTF8" flag.

Returns

\Charcoal\Source\DatabaseSourceConfig

Chainable

disableUtf8()

disableUtf8() : \Charcoal\Source\bools

Returns

\Charcoal\Source\bools