Elastification PHP Client API
Class

Elastification\Client\Response\V1x\DocumentResponse

class DocumentResponse extends Response

Constants

PROP_ID

PROP_SOURCE

PROP_FOUND

PROP_VERSION

PROP_INDEX

PROP_TYPE

Methods

void __construct($rawData $rawData, SerializerInterface $serializer, array $serializerParams = array())

from Response
mixed getData()

from Response
string getRawData()

from Response
SerializerInterface getSerializer()

from Response
bool hasSource()

checks if source exists

array getSource()

gets the source of the response

found()

getId()

getVersion()

getIndex()

getType()

Details

in Response at line 57
public void __construct($rawData $rawData, SerializerInterface $serializer, array $serializerParams = array())

Parameters

$rawData $rawData
SerializerInterface $serializer
array $serializerParams

Return Value

void

in Response at line 67
public mixed getData()

Return Value

mixed

in Response at line 77
public string getRawData()

Return Value

string

in Response at line 85
public SerializerInterface getSerializer()

Return Value

SerializerInterface

at line 41
public bool hasSource()

checks if source exists

Return Value

bool

at line 54
public array getSource()

gets the source of the response

Return Value

array

Exceptions

ResponseException

at line 63
public found()

at line 70
public getId()

at line 77
public getVersion()

at line 84
public getIndex()

at line 91
public getType()