class Key (View source)

The Key class.

Constants

TYPE_UNIQUE

TYPE_INDEX

TYPE_PRIMARY

Methods

__construct(int $type = null, array $columns = array(), string $name = null, string $comment = null)

Key constructor.

string
getName()

Method to get property Name

Key
name(string $name)

Method to set property name

int
getType()

Method to get property Type

Key
type(int $type)

Method to set property type

array
getColumns()

Method to get property Columns

Key
columns(array $columns)

Method to set property columns

string
getComment()

Method to get property Comment

Key
comment(string $comment)

Method to set property comment

Details

at line line 69
__construct(int $type = null, array $columns = array(), string $name = null, string $comment = null)

Key constructor.

Parameters

int $type
array $columns
string $name
string $comment

at line line 82
string getName()

Method to get property Name

Return Value

string

at line line 94
Key name(string $name)

Method to set property name

Parameters

string $name

Return Value

Key Return self to support chaining.

at line line 106
int getType()

Method to get property Type

Return Value

int

at line line 118
Key type(int $type)

Method to set property type

Parameters

int $type

Return Value

Key Return self to support chaining.

at line line 130
array getColumns()

Method to get property Columns

Return Value

array

at line line 142
Key columns(array $columns)

Method to set property columns

Parameters

array $columns

Return Value

Key Return self to support chaining.

at line line 154
string getComment()

Method to get property Comment

Return Value

string

at line line 166
Key comment(string $comment)

Method to set property comment

Parameters

string $comment

Return Value

Key Return self to support chaining.