abstract class Index implements Indexable

Properties

protected mixed $entity The entity that should be indexed.

Methods

__construct(mixed $entity)

Create a new index instance.

string
getKey()

Get the indexable key.

array
toArray()

Get the indexable attributes.

mixed
__get(string $property)

Get the property from the entity.

array
jsonSerialize()

Get the json serializeable attributes.

string
__toString()

Get the string represantion of the index.

Details

at line 21
__construct(mixed $entity)

Create a new index instance.

Parameters

mixed $entity

at line 31
abstract string getKey()

Get the indexable key.

Return Value

string

at line 38
abstract array toArray()

Get the indexable attributes.

Return Value

array

at line 46
mixed __get(string $property)

Get the property from the entity.

Parameters

string $property

Return Value

mixed

at line 56
array jsonSerialize()

Get the json serializeable attributes.

Return Value

array

at line 66
string __toString()

Get the string represantion of the index.

Return Value

string