Index
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.
at line 31
abstract string
getKey()
Get the indexable key.
at line 38
abstract array
toArray()
Get the indexable attributes.
at line 46
mixed
__get(string $property)
Get the property from the entity.
at line 56
array
jsonSerialize()
Get the json serializeable attributes.
at line 66
string
__toString()
Get the string represantion of the index.