final class DefaultIndex implements Index (View source)

A PHP representation of an index

Methods

string
name()

Returns the name of the index

string
kind()

Returns the kind of index

string
target()

Returns the target column of the index

option(string $name)

Return a column's option by name

array
options()

Returns all the index's options

string
className()

Returns the class name of the index

bool
isCustom()

Determines if the index is a custom index.

Details

string name()

Returns the name of the index

Return Value

string

Name of the index

string kind()

Returns the kind of index

Return Value

string

Kind of the index

string target()

Returns the target column of the index

Return Value

string

Target column name of the index

Value option(string $name)

Return a column's option by name

Parameters

string $name

The name of the option

Return Value

Value

Value of an option by name

array options()

Returns all the index's options

Return Value

array

A dictionary of string and Value pairs of the index's options.

string className()

Returns the class name of the index

Return Value

string

Class name of a custom index

bool isCustom()

Determines if the index is a custom index.

Return Value

bool

true if a custom index